diff --git a/admin/lib/cust/main.js b/admin/lib/cust/main.js index 2a07a2c0617173f5d64db33605ad15f04bcb3b01..583c5f0aee71ce3251cc8c718e208028f024c0e6 100644 --- a/admin/lib/cust/main.js +++ b/admin/lib/cust/main.js @@ -22,12 +22,13 @@ var tools = { }, // Ajax loading gunction and getting the tools - curHash: null, + curTool: null, getTool: function(tool) { - var nextTool = tool || window.location.hash.slice(1); - if(tools.curTool != nextTool){ - tools.curTool = window.location.hash = nextTool; - } + var nextTool = (typeof tool != 'object')? tool : window.location.hash.slice(1); + if(tools.curTool == nextTool) + return; + tools.curTool = nextTool; + window.location.hash = nextTool; $('#wheel-logo').css('transform', 'rotate(360deg)'); $('#main-content').fadeOut(100,function() { $.ajax({