From 1c3abf3fdd5aa8dfdc183706a62cb7445698d11d Mon Sep 17 00:00:00 2001 From: Argo-Lenovo Date: Sun, 11 Dec 2016 14:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=92=E8=89=B2=E6=8E=88=E6=9D=83=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=8A=9F=E8=83=BD=E4=B8=AD=EF=BC=8C=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=88=B6=E8=8A=82=E7=82=B9=E5=90=8E=E5=AD=90=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bootstrap.Admin/Scripts/Roles.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Bootstrap.Admin/Scripts/Roles.js b/Bootstrap.Admin/Scripts/Roles.js index 989c23e3..ef66a349 100644 --- a/Bootstrap.Admin/Scripts/Roles.js +++ b/Bootstrap.Admin/Scripts/Roles.js @@ -133,4 +133,12 @@ maxlength: 50 } }); + + $nestMenuInput.on('click', ':checkbox', function () { + var val = $(this).prop('checked'); + var child = $(this).parent().parent().next(); + if (child.hasClass('dd-list')) { + child.find(':checkbox').prop('checked', val); + } + }); }); \ No newline at end of file