From 61a1005bdc843dea89119314359c674f31ee0cb1 Mon Sep 17 00:00:00 2001 From: Dmitry Naumov-Socolov Date: Mon, 14 Nov 2016 18:37:10 -0500 Subject: [PATCH] WEB. fixed emplty list toggle all --- web/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/app.js b/web/js/app.js index af335fa5d..58eb60a8d 100644 --- a/web/js/app.js +++ b/web/js/app.js @@ -1044,7 +1044,7 @@ hover_menu = function() { 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"); $('.ch-toggle').prop("checked", false); $('.toggle-all').removeClass('clicked-on');