Browse Source

fixed toggle all and checkox js bug

Serghey Rodin 10 years ago
parent
commit
f5acec8c3c
1 changed files with 2 additions and 2 deletions
  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');
     }
     }
 }
 }