upgraded the help menu and added handler for bushi_bar guide
This commit is contained in:
parent
e2b68ba861
commit
b780bbd42a
@ -58,7 +58,6 @@ $(document).ready(function(){
|
|||||||
var possibles = ['ul.folder:first li',
|
var possibles = ['ul.folder:first li',
|
||||||
'ul#pages-list li'];
|
'ul#pages-list li'];
|
||||||
for(var i = 0; i<possibles.length; i++){
|
for(var i = 0; i<possibles.length; i++){
|
||||||
console.log("checking possibles", i, possibles[i]);
|
|
||||||
if($(possibles[i]).length > 0){
|
if($(possibles[i]).length > 0){
|
||||||
return possibles[i];
|
return possibles[i];
|
||||||
}
|
}
|
||||||
@ -551,9 +550,9 @@ $(document).ready(function(){
|
|||||||
$(".tutorial").click(function(){
|
$(".tutorial").click(function(){
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
guiders.hideAll();
|
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 = $this.attr('href') + "#guider=" + $this.attr('id');
|
||||||
window.location.refresh;
|
window.location.reload();
|
||||||
}else{
|
}else{
|
||||||
guiders.show($this.attr('id'));
|
guiders.show($this.attr('id'));
|
||||||
}
|
}
|
||||||
@ -583,17 +582,19 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
window.onload = function(){
|
window.onload = function(){
|
||||||
window.setTimeout(function(){
|
window.setTimeout(function(){
|
||||||
guiders.createGuider({
|
if($('#bushi_banner').length > 0){
|
||||||
attachTo: "#bushi_banner",
|
guiders.createGuider({
|
||||||
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.\
|
attachTo: "#bushi_banner",
|
||||||
<br /><br /> They will keep your LocomotiveCMS site up and running. If you want to keep your LocomotiveCMS site, they have a short signup processes above. Check it out!",
|
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.\
|
||||||
buttons: [{name: "Next"}],
|
<br /><br /> They will keep your LocomotiveCMS site up and running. If you want to keep your LocomotiveCMS site, they have a short signup processes above. Check it out!",
|
||||||
id: "bushi_banner_guide",
|
buttons: [{name: "Next"}],
|
||||||
overlay: true,
|
id: "bushi_banner_guide",
|
||||||
title: "One more Thing...",
|
overlay: true,
|
||||||
next: "congratulations",
|
title: "One more Thing...",
|
||||||
position: 6
|
next: "congratulations",
|
||||||
});
|
position: 6
|
||||||
|
});
|
||||||
|
}
|
||||||
}, 1000);
|
}, 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user