diff --git a/module/admin/js/index.js b/module/admin/js/index.js deleted file mode 100755 index 2cec602ab9..0000000000 --- a/module/admin/js/index.js +++ /dev/null @@ -1 +0,0 @@ -$(function() { if(!showDemoUsers) $('#submenuclearData').addClass('hidden');}); diff --git a/www/js/my.full.js b/www/js/my.full.js index 190e5bd1e9..081358fd26 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -656,6 +656,17 @@ function ajaxGetSearchForm() } } +/** + * Hide the link of clearData. + * + * @access public + * @return void + */ +function hideClearDataLink() +{ + if(typeof showDemoUsers == 'undefined' || !showDemoUsers) $('#submenuclearData').addClass('hidden'); +} + /** * add one option of a select to another select. * @@ -809,6 +820,8 @@ $(document).ready(function() autoCheck(); toggleSearch(); + hideClearDataLink(); + $(window).resize(function(){saveWindowSize()}); // When window resized, call it again. if(needPing) setTimeout('setPing()', 1000 * 60); // After 5 minutes, begin ping.