}
this.closeRedBox();
+ this.quickClose();
this.redBoxOnDisplay = RedBox.onDisplay;
RedBox.onDisplay = function() {
if (this.redBoxOnDisplay) {
}
this.closeRedBox();
+ this.quickClose();
if ($('kronolithCalendarDialog')) {
this.redBoxLoading = true;
RedBox.showHtml($('kronolithCalendarDialog').show());
case Event.KEY_ESC:
switch (form.identify()) {
case 'kronolithQuickinsertForm':
- $('kronolithQuickinsert').fade({ duration: this.effectDur });
+ this.quickClose();
break;
case 'kronolithEventForm':
this.closeRedBox();
return;
case 'kronolithQuickinsertCancel':
- $('kronolithQuickinsert').fade({ duration: this.effectDur });
- $('kronolithQuickinsertQ').value = '';
+ this.quickClose();
e.stop();
return;
}
this.closeRedBox();
+ this.quickClose();
this.redBoxOnDisplay = RedBox.onDisplay;
RedBox.onDisplay = function() {
if (this.redBoxOnDisplay) {
}.bind(this));
},
+ /**
+ * Closes and resets the quick event form.
+ */
+ quickClose: function()
+ {
+ $('kronolithQuickinsert').fade({ duration: this.effectDur });
+ $('kronolithQuickinsertQ').value = '';
+ },
+
topTagsCallback: function(update, tagclass, r)
{
$('kronolithEventTabTags').select('label').each(function(e) {e.show()});