added guard for missing models error
'
This commit is contained in:
parent
b780bbd42a
commit
0473fdd7ea
@ -96,7 +96,13 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
guiders.createGuider({
|
guiders.createGuider({
|
||||||
attachTo: 'li.hoverable:eq(2)',
|
attachTo: (function(){
|
||||||
|
if($('li.hoverable:eq(2)').length > 0){
|
||||||
|
return 'li.hoverable:eq(2)';
|
||||||
|
}else{
|
||||||
|
return 'li.hoverable:first';
|
||||||
|
}
|
||||||
|
}()),
|
||||||
buttons: [{name: "Quit", onclick: guiders.hideAll},
|
buttons: [{name: "Quit", onclick: guiders.hideAll},
|
||||||
{name: "Next - Edit an Event",
|
{name: "Next - Edit an Event",
|
||||||
onclick: function(){
|
onclick: function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user