Created
April 11, 2012 16:59
-
-
Save beezee/2360529 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tourApp = { | |
tabSteps: { | |
8: 'images', | |
12: 'users' | |
}, | |
needsTweaking: function(i) { | |
return typeof tourApp.tabSteps[i] != 'undefined'; | |
}, | |
clickTabLink: function(i) { | |
console.log('clicked', i, $("#binno-custom-tabs a[href='#"+tourApp.tabSteps[i]+"']")); | |
$("#binno-custom-tabs a[href='#"+tourApp.tabSteps[i]+"']").click(); | |
//Drawium.tour_next() | |
} | |
} | |
function Drawium_explain_box_displayed(index){ | |
if (tourApp.needsTweaking(index)) { | |
var $next = $('.drawium_next_button'); | |
$next.unbind('click'); | |
$next.bind('click.drawium', tourApp.clickTabLink(index)); | |
} else { | |
$('.drawium_next_button').unbind('click.drawium'); | |
} | |
}; | |
jQuery('document').ready(function($) { | |
$('#drawium_ignition').click(function() { | |
$("#binno-custom-tabs a[href='#settings']").click(); | |
Drawium.start_tour(); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment