diff --git a/app/assets/javascripts/BSBMaterial/admin.js b/app/assets/javascripts/BSBMaterial/admin.js index f670db1f..8366ea20 100755 --- a/app/assets/javascripts/BSBMaterial/admin.js +++ b/app/assets/javascripts/BSBMaterial/admin.js @@ -44,7 +44,7 @@ $.AdminBSB.options = { /* Left Sidebar - Function ================================================================================================= * You can manage the left sidebar menu options -* +* */ $.AdminBSB.leftSideBar = { activate: function () { @@ -157,7 +157,7 @@ $.AdminBSB.leftSideBar = { /* Right Sidebar - Function ================================================================================================ * You can manage the right sidebar menu options -* +* */ $.AdminBSB.rightSideBar = { activate: function () { @@ -189,7 +189,7 @@ $.AdminBSB.rightSideBar = { /* Searchbar - Function ================================================================================================ * You can manage the search bar -* +* */ var $searchBar = $('.search-bar'); $.AdminBSB.search = { @@ -226,7 +226,7 @@ $.AdminBSB.search = { /* Navbar - Function ======================================================================================================= * You can manage the navbar -* +* */ $.AdminBSB.navbar = { activate: function () { @@ -256,7 +256,7 @@ $.AdminBSB.navbar = { /* Input - Function ======================================================================================================== * You can manage the inputs(also textareas) with name of class 'form-control' -* +* */ $.AdminBSB.input = { activate: function () { @@ -293,7 +293,7 @@ $.AdminBSB.input = { /* Form - Select - Function ================================================================================================ * You can manage the 'select' of form elements -* +* */ $.AdminBSB.select = { activate: function () { @@ -304,7 +304,7 @@ $.AdminBSB.select = { /* DropdownMenu - Function ================================================================================================= * You can manage the dropdown menu -* +* */ $.AdminBSB.dropdownMenu = { @@ -382,7 +382,7 @@ $.AdminBSB.dropdownMenu = { /* Browser - Function ====================================================================================================== * You can manage browser -* +* */ var edge = 'Microsoft Edge'; var ie10 = 'Internet Explorer 10'; @@ -454,5 +454,8 @@ $(document).ready(function() { $.AdminBSB.select.activate(); $.AdminBSB.search.activate(); - setTimeout(function () { $('.page-loader-wrapper').fadeOut(); }, 50); -}); \ No newline at end of file + if (window.location.href.substring(window.location.href.lastIndexOf('/') + 1) == "food_court#") { + }else{ + setTimeout(function () { $('.page-loader-wrapper').fadeOut(); }, 50); + } +}); diff --git a/app/assets/javascripts/BSBMaterial/turbolink_admin.js b/app/assets/javascripts/BSBMaterial/turbolink_admin.js index 50a3a8a2..12e8b751 100644 --- a/app/assets/javascripts/BSBMaterial/turbolink_admin.js +++ b/app/assets/javascripts/BSBMaterial/turbolink_admin.js @@ -44,7 +44,7 @@ $.AdminBSB.options = { /* Left Sidebar - Function ================================================================================================= * You can manage the left sidebar menu options -* +* */ $.AdminBSB.leftSideBar = { activate: function () { @@ -157,7 +157,7 @@ $.AdminBSB.leftSideBar = { /* Right Sidebar - Function ================================================================================================ * You can manage the right sidebar menu options -* +* */ $.AdminBSB.rightSideBar = { activate: function () { @@ -189,7 +189,7 @@ $.AdminBSB.rightSideBar = { /* Searchbar - Function ================================================================================================ * You can manage the search bar -* +* */ var $searchBar = $('.search-bar'); $.AdminBSB.search = { @@ -226,7 +226,7 @@ $.AdminBSB.search = { /* Navbar - Function ======================================================================================================= * You can manage the navbar -* +* */ $.AdminBSB.navbar = { activate: function () { @@ -256,7 +256,7 @@ $.AdminBSB.navbar = { /* Input - Function ======================================================================================================== * You can manage the inputs(also textareas) with name of class 'form-control' -* +* */ $.AdminBSB.input = { activate: function () { @@ -293,7 +293,7 @@ $.AdminBSB.input = { /* Form - Select - Function ================================================================================================ * You can manage the 'select' of form elements -* +* */ $.AdminBSB.select = { activate: function () { @@ -304,7 +304,7 @@ $.AdminBSB.select = { /* DropdownMenu - Function ================================================================================================= * You can manage the dropdown menu -* +* */ $.AdminBSB.dropdownMenu = { @@ -382,7 +382,7 @@ $.AdminBSB.dropdownMenu = { /* Browser - Function ====================================================================================================== * You can manage browser -* +* */ var edge = 'Microsoft Edge'; var ie10 = 'Internet Explorer 10'; @@ -455,4 +455,4 @@ $(document).on('turbolinks:load', function() { $.AdminBSB.search.activate(); setTimeout(function () { $('.page-loader-wrapper').fadeOut(); }, 50); -}); \ No newline at end of file +}); diff --git a/app/assets/javascripts/addorder.js b/app/assets/javascripts/addorder.js index 7b98d03a..6ea9abf6 100755 --- a/app/assets/javascripts/addorder.js +++ b/app/assets/javascripts/addorder.js @@ -481,7 +481,7 @@ $(function() { parent = $('.set-item').attr('data-parent'); total = qty * price ; row ="