Skip to content
Snippets Groups Projects
Commit c58eb63d authored by CupCakeArmy's avatar CupCakeArmy
Browse files

Fix getTool()

parent 6e3c5cf9
No related branches found
No related tags found
No related merge requests found
......@@ -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({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment