Move unselect call to after the dialog starts

This commit is contained in:
Bart Visscher 2011-10-27 22:54:39 +02:00
parent d0e9c81399
commit 1e8e2ae353

View file

@ -11,6 +11,7 @@ Calendar={
UI:{
startEventDialog:function(){
$('.tipsy').remove();
$('#calendar_holder').fullCalendar('unselect');
Calendar.UI.lockTime();
$( "#from" ).datepicker({
dateFormat : 'dd-mm-yy'
@ -37,7 +38,6 @@ Calendar={
if (end){
end = Math.round(end.getTime()/1000);
}
$('#calendar_holder').fullCalendar('unselect');
if($('#event').dialog('isOpen') == true){
// TODO: save event
$('#event').dialog('destroy').remove();