* add cookie for edit project checkbox.

This commit is contained in:
王怡栋
2021-08-26 09:44:58 +08:00
parent abe86c3128
commit 63bae30d3d
+2
View File
@@ -10,8 +10,10 @@ $(function()
$('input#editProject1').click(function()
{
var editProject = $(this).is(':checked') ? 1 : 0;
$.cookie('editProject', editProject, {expires:config.cookieLife, path:config.webRoot});
showEditCheckbox(editProject);
});
if($.cookie('editProject') != 0) $('input#editProject1').prop('checked', 'true');
if($('input#editProject1').prop('checked')) showEditCheckbox(true);
$(document).on('click', ":checkbox[name^='projectIdList']", function()