Explorar o código

WEB. fixed emplty list toggle all

Dmitry Naumov-Socolov %!s(int64=9) %!d(string=hai) anos
pai
achega
61a1005bdc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      web/js/app.js

+ 1 - 1
web/js/app.js

@@ -1044,7 +1044,7 @@ 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').length ) {
         $('.l-unit:not(.header)').removeClass("selected");
         $('.l-unit:not(.header)').removeClass("selected");
         $('.ch-toggle').prop("checked", false);
         $('.ch-toggle').prop("checked", false);
         $('.toggle-all').removeClass('clicked-on');
         $('.toggle-all').removeClass('clicked-on');