upgraded the help menu and added handler for bushi_bar guide

This commit is contained in:
Kev Zettler 2011-07-22 17:55:01 -07:00
parent e2b68ba861
commit b780bbd42a

View File

@ -58,7 +58,6 @@ $(document).ready(function(){
var possibles = ['ul.folder:first li',
'ul#pages-list li'];
for(var i = 0; i<possibles.length; i++){
console.log("checking possibles", i, possibles[i]);
if($(possibles[i]).length > 0){
return possibles[i];
}
@ -551,9 +550,9 @@ $(document).ready(function(){
$(".tutorial").click(function(){
var $this = $(this);
guiders.hideAll();
if($this.attr('href') != '#'){
if($this.attr('href') != '#' && window.location.pathname != $this.attr('href')){
window.location = $this.attr('href') + "#guider=" + $this.attr('id');
window.location.refresh;
window.location.reload();
}else{
guiders.show($this.attr('id'));
}
@ -583,6 +582,7 @@ $(document).ready(function(){
window.onload = function(){
window.setTimeout(function(){
if($('#bushi_banner').length > 0){
guiders.createGuider({
attachTo: "#bushi_banner",
description: "You may have noticed the bar at the top of your site. Its provided by Bushido. Bushido are friends of LocomotiveCMS. They are our official hosting partner.\
@ -594,6 +594,7 @@ $(document).ready(function(){
next: "congratulations",
position: 6
});
}
}, 1000);
};