소스 검색

HUE-5771 [useradmin] Checkbox click binding should work also after a pagination event

Enrico Berti 8 년 전
부모
커밋
29493d5
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      apps/useradmin/src/useradmin/templates/list_groups.mako
  2. 1 1
      apps/useradmin/src/useradmin/templates/list_users.mako

+ 1 - 1
apps/useradmin/src/useradmin/templates/list_groups.mako

@@ -173,7 +173,7 @@ ${layout.menubar(section='groups')}
       toggleActions();
     });
 
-    $(".groupCheck").click(function () {
+    $(document).on('click', '.groupCheck', function () {
       if ($(this).attr("checked")) {
         $(this).removeClass("fa-check").removeAttr("checked");
       }

+ 1 - 1
apps/useradmin/src/useradmin/templates/list_users.mako

@@ -204,7 +204,7 @@ ${layout.menubar(section='users')}
       toggleActions();
     });
 
-    $(".userCheck").click(function () {
+    $(document).on('click', '.userCheck', function () {
       if ($(this).attr("checked")) {
         $(this).removeClass("fa-check").removeAttr("checked");
       }