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 @@
| 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');?>
+
|
@@ -68,7 +58,13 @@
|
| + |
+
+
+
+
+ |
+ |||