diff --git a/js/tmTimer.js b/js/tmTimer.js index 10cd3df..ac8519d 100755 --- a/js/tmTimer.js +++ b/js/tmTimer.js @@ -597,13 +597,16 @@ $(function () { btnStopClick(isStarted); } showSnackBar(currentTranslation.deletedRoles, true); - if (totalItems === 0) { - multipleEnabled = false; - clearTimetable(); - $("#hNoResults").show(); - $("#tblResults,#footerResult").hide(); - } - resizeModal(); + + totalItems.onsuccess = function() { + if (totalItems.result === 0) { + multipleEnabled = false; + clearTimetable(); + $("#hNoResults").show(); + $("#tblResults,#footerResult").hide(); + } + resizeModal(); + }; } } });