Avoid error if an edit popup is opened before the calendar tab

This commit is contained in:
Nathan Gray 2015-12-12 00:13:38 +00:00
parent 4503abf1bc
commit e580e7991c

View File

@ -674,6 +674,8 @@ app.classes.calendar = AppJS.extend(
return false;
}
);
if(framework.applications.calendar && framework.applications.calendar.tab)
{
jQuery(framework.applications.calendar.tab.contentDiv).swipe('destroy')
.swipe({
//Generic swipe handler for all directions
@ -723,6 +725,7 @@ app.classes.calendar = AppJS.extend(
scroll_animate.call(this,"down", 1);
return true;
});
}
},
/**