|
|
|
@ -382,11 +382,11 @@ $(document).ready(function() { |
|
|
|
'{{ "Delete"|get_lang }}': function() { |
|
|
|
'{{ "Delete"|get_lang }}': function() { |
|
|
|
|
|
|
|
|
|
|
|
if (calEvent.parent_event_id || calEvent.has_children != '') { |
|
|
|
if (calEvent.parent_event_id || calEvent.has_children != '') { |
|
|
|
var newDiv = $(document.createElement('div')); |
|
|
|
var newDiv = $('<div>'); |
|
|
|
|
|
|
|
|
|
|
|
newDiv.dialog({ |
|
|
|
newDiv.dialog({ |
|
|
|
modal: true, |
|
|
|
modal: true, |
|
|
|
title: "{{ 'DeleteThisItem' | get_lang }}" |
|
|
|
title: "{{ 'DeleteThisItem' | get_lang }}", |
|
|
|
|
|
|
|
buttons: [] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
var buttons = newDiv.dialog("option", "buttons"); |
|
|
|
var buttons = newDiv.dialog("option", "buttons"); |
|
|
|
@ -404,7 +404,7 @@ $(document).ready(function() { |
|
|
|
calendar.fullCalendar("refetchEvents"); |
|
|
|
calendar.fullCalendar("refetchEvents"); |
|
|
|
calendar.fullCalendar("rerenderEvents"); |
|
|
|
calendar.fullCalendar("rerenderEvents"); |
|
|
|
$("#dialog-form").dialog("close"); |
|
|
|
$("#dialog-form").dialog("close"); |
|
|
|
newDiv.dialog( "close" ); |
|
|
|
newDiv.dialog( "destroy" ); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -425,7 +425,7 @@ $(document).ready(function() { |
|
|
|
calendar.fullCalendar("refetchEvents"); |
|
|
|
calendar.fullCalendar("refetchEvents"); |
|
|
|
calendar.fullCalendar("rerenderEvents"); |
|
|
|
calendar.fullCalendar("rerenderEvents"); |
|
|
|
$("#dialog-form").dialog( "close" ); |
|
|
|
$("#dialog-form").dialog( "close" ); |
|
|
|
newDiv.dialog( "close" ); |
|
|
|
newDiv.dialog( "destroy" ); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|