Sfoglia il codice sorgente

fixed toggle all and checkox js bug

Serghey Rodin 9 anni fa
parent
commit
f5acec8c3c
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      web/js/app.js

+ 2 - 2
web/js/app.js

@@ -1042,12 +1042,12 @@ hover_menu = function() {
 function checkedAll(frmname) {
 function checkedAll(frmname) {
     if ($('.l-unit.selected:not(.header)').length > 0) {
     if ($('.l-unit.selected:not(.header)').length > 0) {
         $('.l-unit:not(.header)').removeClass("selected");
         $('.l-unit:not(.header)').removeClass("selected");
-        $('.ch-toggle').attr("checked", false);
+        $('.ch-toggle').prop("checked", false);
         $('.toggle-all').removeClass('clicked-on');
         $('.toggle-all').removeClass('clicked-on');
     }
     }
     else {
     else {
         $('.l-unit:not(.header)').addClass("selected");
         $('.l-unit:not(.header)').addClass("selected");
-        $('.ch-toggle').attr("checked", true);
+        $('.ch-toggle').prop("checked", true);
         $('.toggle-all').addClass('clicked-on');
         $('.toggle-all').addClass('clicked-on');
     }
     }
 }
 }