omg more tutorials awesome
This commit is contained in:
parent
6db607cb1e
commit
6fa003db5c
@ -97,13 +97,17 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
guiders.createGuider({
|
guiders.createGuider({
|
||||||
attachTo: 'li.hoverable:last',
|
attachTo: 'li.hoverable:eq(2)',
|
||||||
buttons: [],
|
buttons: [{name: "Quit", onclick: guiders.hideAll},
|
||||||
description: "These are models.<br /> You can hover over to edit them.",
|
{name: "Next - Edit an Event",
|
||||||
|
onclick: function(){
|
||||||
|
window.location = $('li.hoverable:eq(2) li:first a').attr('href') + "#guider=editmodelwelcome";
|
||||||
|
}}],
|
||||||
|
description: "These are models.<br /> You can hover over to edit them. For this next section of the guide. We will edit an Event model. '"+$('.inner:eq(3) li:first a').text()+"' ",
|
||||||
id: "modelpointer",
|
id: "modelpointer",
|
||||||
next: "editpagewelcome",
|
next: "editpagewelcome",
|
||||||
width: 240,
|
width: 240,
|
||||||
position: 3,
|
position: 4,
|
||||||
title: ""
|
title: ""
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -114,6 +118,7 @@ $(document).ready(function(){
|
|||||||
id: "newmodelpointer",
|
id: "newmodelpointer",
|
||||||
next: "editpagewelcome",
|
next: "editpagewelcome",
|
||||||
position: 6,
|
position: 6,
|
||||||
|
overlay: true,
|
||||||
width: 200,
|
width: 200,
|
||||||
title: ""
|
title: ""
|
||||||
});
|
});
|
||||||
@ -151,24 +156,25 @@ $(document).ready(function(){
|
|||||||
return ret;
|
return ret;
|
||||||
}()),
|
}()),
|
||||||
buttons: [{name: "Quit", onclick: guiders.hideAll},
|
buttons: [{name: "Quit", onclick: guiders.hideAll},
|
||||||
(function(){
|
{name: "Next"}],
|
||||||
if($('liv.hoverable').length < 1){
|
// (function(){
|
||||||
return {
|
// if($('li.hoverable').length < 1){
|
||||||
name: "Next - Create a Model",
|
// return {
|
||||||
onclick: function(){
|
// name: "Next - Create a Model",
|
||||||
guiders.hideAll();
|
// onclick: function(){
|
||||||
guiders.show('newmodelpointer-next');
|
// guiders.hideAll();
|
||||||
}
|
// guiders.show('newmodelpointer-next');
|
||||||
};
|
// }
|
||||||
}else{
|
// };
|
||||||
return {
|
// }else{
|
||||||
name: "Next - Edit an Event",
|
// return {
|
||||||
onclick: function(){
|
// name: "Next - Edit an Event",
|
||||||
window.location = $('.inner:eq(3) li:first a').attr('href') + "#guider=editmodelwelcome";
|
// onclick: function(){
|
||||||
}
|
// window.location = $('li.hoverable:eq(2) li:first a').attr('href') + "#guider=editmodelwelcome";
|
||||||
};
|
// }
|
||||||
}
|
// };
|
||||||
}())],
|
// }
|
||||||
|
// }())],
|
||||||
id: "modelwelcome",
|
id: "modelwelcome",
|
||||||
next: (function(){
|
next: (function(){
|
||||||
if($('li.hoverable').length > 1){
|
if($('li.hoverable').length > 1){
|
||||||
@ -302,10 +308,11 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
function viewSiteClick(e){
|
function viewSiteClick(e){
|
||||||
|
console.log("viewsite click!");
|
||||||
var $this = $(e.target);
|
var $this = $(e.target);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
window.open($this.attr('href'),"_blank");
|
window.open($this.attr('href'),"_blank");
|
||||||
//console.log("viewsite click!");
|
$this.attr('href', '#');
|
||||||
guiders.next();
|
guiders.next();
|
||||||
$this.unbind('click', viewSiteClick);
|
$this.unbind('click', viewSiteClick);
|
||||||
return false;
|
return false;
|
||||||
@ -462,7 +469,17 @@ $(document).ready(function(){
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if(window.location.pathname.match("admin/current_site/edit") != null){
|
if(window.location.pathname.match("admin/current_site/edit") != null){
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We have to delay the creation of this guider
|
||||||
|
* so TinyMCE can render it
|
||||||
|
*/
|
||||||
|
window.onload = function(){
|
||||||
|
window.setTimeout(function(){
|
||||||
|
|
||||||
|
}, 2000);
|
||||||
|
};
|
||||||
|
|
||||||
guiders.createGuider({
|
guiders.createGuider({
|
||||||
attachTo: "undefined",
|
attachTo: "undefined",
|
||||||
description: "Welcome to the Settings page. Here you can create new user accounts to use LocomotiveCMS, Edit SEO options, and more. We will start by changing the subomain of our site.",
|
description: "Welcome to the Settings page. Here you can create new user accounts to use LocomotiveCMS, Edit SEO options, and more. We will start by changing the subomain of our site.",
|
||||||
@ -498,17 +515,17 @@ $(document).ready(function(){
|
|||||||
title: "Save Your Work",
|
title: "Save Your Work",
|
||||||
onShow: function(){
|
onShow: function(){
|
||||||
$('form.save-with-shortcut').attr('action',
|
$('form.save-with-shortcut').attr('action',
|
||||||
$('form.save-with-shortcut').attr('action')+"#guider=modelsavesuccess");
|
$('form.save-with-shortcut').attr('action')+"#guider=settingssavesuccess");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
guiders.createGuider({
|
guiders.createGuider({
|
||||||
attachTo: "undefined",
|
attachTo: "undefined",
|
||||||
description: "You've Successfully updated your LocomotiveCMS settings",
|
description: "You've Successfully updated your LocomotiveCMS settings. Dosen't that feel awesome?",
|
||||||
buttons: [{name: "Quit", onclick: guiders.hideAll},
|
buttons: [{name: "Quit", onclick: guiders.hideAll},
|
||||||
{name: "Next"}],
|
{name: "Next"}],
|
||||||
id: "settingssavesuccess",
|
id: "settingssavesuccess",
|
||||||
next: "editsubdomain",
|
next: "congratulations",
|
||||||
overlay: true,
|
overlay: true,
|
||||||
title: "Great Work!"
|
title: "Great Work!"
|
||||||
});
|
});
|
||||||
@ -568,5 +585,4 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user