Sfoglia il codice sorgente

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

Enrico Berti 8 anni fa
parent
commit
29493d53c0

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

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