added guard for missing models error

'
This commit is contained in:
Kev Zettler 2011-07-26 12:59:07 -07:00
parent b780bbd42a
commit 0473fdd7ea

View File

@ -96,7 +96,13 @@ $(document).ready(function(){
});
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},
{name: "Next - Edit an Event",
onclick: function(){