* Add project checkbox style.

This commit is contained in:
曹延义
2022-09-28 10:09:32 +08:00
parent d16362e3da
commit ca5110623e
5 changed files with 44 additions and 14 deletions
+21
View File
@@ -0,0 +1,21 @@
$(function()
{
$('input[name^="showEdit"]').click(function()
{
$.cookie('showProjectBatchEdit', $(this).is(':checked') ? 1 : 0, {expires: config.cookieLife, path: config.webRoot});
setCheckbox();
});
setCheckbox();
});
/**
* Set batch edit checkbox.
*
* @access public
* @return void
*/
function setCheckbox()
{
$('#projectsForm .checkbox-primary').hide();
if($.cookie('showProjectBatchEdit') == 1) $('#projectsForm .checkbox-primary').show();
}