fixed menu loading

This commit is contained in:
NyanLinHtut
2020-03-04 11:58:21 +06:30
parent 052be7f028
commit 82ab2c7ef0
4 changed files with 31 additions and 27 deletions

View File

@@ -454,5 +454,8 @@ $(document).ready(function() {
$.AdminBSB.select.activate(); $.AdminBSB.select.activate();
$.AdminBSB.search.activate(); $.AdminBSB.search.activate();
setTimeout(function () { $('.page-loader-wrapper').fadeOut(); }, 50); if (window.location.href.substring(window.location.href.lastIndexOf('/') + 1) == "food_court#") {
}else{
setTimeout(function () { $('.page-loader-wrapper').fadeOut(); }, 50);
}
}); });

View File

@@ -472,8 +472,9 @@ function getAllMenu(){
localStorage.setItem("menus", menus); localStorage.setItem("menus", menus);
if (result != null ) { if (result != null ) {
menu_cache_append(result); menu_cache_append(result);
$( "#loading_wrapper").hide(); $("#loading_wrapper").hide();
$("#oqs_loading_wrapper").css("display", "none"); $("#oqs_loading_wrapper").css("display", "none");
$(".page-loader-wrapper").css("display", "none");
} }
} }
}); });