diff --git a/Bootstrap.Admin/wwwroot/js/roles.js b/Bootstrap.Admin/wwwroot/js/roles.js index 6f196d63..f9242294 100644 --- a/Bootstrap.Admin/wwwroot/js/roles.js +++ b/Bootstrap.Admin/wwwroot/js/roles.js @@ -108,7 +108,7 @@ $nestMenuInput = $nestMenu.find('div.dd3-content'); $nestMenuInput.on('click', ':checkbox', function () { var val = $(this).prop('checked'); - var child = $(this).parent().parent().next(); + var child = $(this).parents('.dd3-content').next(); if (child.hasClass('dd-list')) { child.find(':checkbox').prop('checked', val); }