* hide clear data link.

This commit is contained in:
chencongzhi520@gmail.com
2013-01-24 07:05:52 +00:00
parent fe0817a681
commit ec98a9dec0
2 changed files with 13 additions and 1 deletions
-1
View File
@@ -1 +0,0 @@
$(function() { if(!showDemoUsers) $('#submenuclearData').addClass('hidden');});
+13
View File
@@ -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.