* Repair program set drop-down menu.

This commit is contained in:
tianshujie98
2021-03-18 14:14:52 +08:00
parent 947dbffcf6
commit f10dced1e8
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -58,11 +58,11 @@ $programsPinYin = common::convert2Pinyin($programNames);
$('#programTree').tree();
$(function()
{
$('input[name^="showClosed"]').click(function()
$(document).on('change', 'input[name^="showClosed"]', function()
{
var showClosed = $(this).is(':checked') ? 1 : 0;
$.cookie('showClosed', showClosed, {expires:config.cookieLife, path:config.webRoot});
window.location.reload();
$("#dropMenu > .list-group").load(createLink('program', 'ajaxgetdropmenu', 'programID=' + programID + '&module=' + module + '&method=' + method));
});
});
</script>