From 748335e401cf54a808de6df288faadfcf0609d2c Mon Sep 17 00:00:00 2001 From: wangyuting <851424971@qq.com> Date: Tue, 22 Nov 2022 02:13:02 +0000 Subject: [PATCH] * Finish task #77136. --- module/admin/js/setmodule.js | 10 ++++++- module/admin/view/setmodule.html.php | 40 +++++++++++++--------------- 2 files changed, 27 insertions(+), 23 deletions(-) diff --git a/module/admin/js/setmodule.js b/module/admin/js/setmodule.js index 32048ea3a0..ad652ec11e 100644 --- a/module/admin/js/setmodule.js +++ b/module/admin/js/setmodule.js @@ -11,5 +11,13 @@ $(function() { $("input[name='" + name + "'][type=hidden]").val('0').attr('disabled', false); } - }) + }); + $('input[name=allChecker]').change(function() + { + $(this).closest('tr').find("input[name^='module']").prop('checked', $(this).prop('checked')).change(); + }); + $('#allChecker').change(function() + { + $('input[name=allChecker]').prop('checked', $(this).prop('checked')).change(); + }); }) diff --git a/module/admin/view/setmodule.html.php b/module/admin/view/setmodule.html.php index 73a90383e6..ef957bbde8 100644 --- a/module/admin/view/setmodule.html.php +++ b/module/admin/view/setmodule.html.php @@ -20,12 +20,8 @@ - - - - - - + + @@ -41,26 +37,20 @@ - + - @@ -68,7 +58,13 @@ - + +
admin->setModule->module;?>admin->setModule->optional;?>
admin->setModule->opened;?>admin->setModule->closed;?>admin->setModule->module;?>admin->setModule->optional;?>
admin->setModule->{$group};?> +
+ + +
+
- +
- $lang->admin->setModule->{$feature}), '1', "data-code='{$code}'", 'inline');?> - -
- -
- - - - -
- $lang->admin->setModule->{$feature}), '0', "data-code='{$code}'", 'inline');?> - + $lang->admin->setModule->{$feature}), $value, "data-code='{$code}'", 'inline');?> +
+
+ + +
+