From 39a1267abc97c42148d593f171d709cb4a72aea3 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 20 May 2016 06:14:24 -0400 Subject: [PATCH] Close events export dialog on Export (#5432) --- plugins/calendar/calendar_ui.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/calendar/calendar_ui.js b/plugins/calendar/calendar_ui.js index a4d894f5..90a7f8a6 100644 --- a/plugins/calendar/calendar_ui.js +++ b/plugins/calendar/calendar_ui.js @@ -3033,11 +3033,11 @@ function rcube_calendar_ui(settings) rcmail.env.request_timeout = timeout; } }; - + buttons[rcmail.gettext('cancel', 'calendar')] = function() { $dialog.dialog("close"); }; - + // open jquery UI dialog $dialog.dialog({ modal: true, @@ -3054,7 +3054,6 @@ function rcube_calendar_ui(settings) buttons: buttons, width: 520 }).show(); - }; // callback from server if import succeeded @@ -3097,7 +3096,7 @@ function rcube_calendar_ui(settings) if (custom) input.select(); }) - + var buttons = {}; buttons[rcmail.gettext('export', 'calendar')] = function() { if (form) { @@ -3112,8 +3111,9 @@ function rcube_calendar_ui(settings) rcmail.goto_url('export_events', { source:source, start:start, attachments:attachmt?1:0 }); } + $dialog.dialog("close"); }; - + buttons[rcmail.gettext('cancel', 'calendar')] = function() { $dialog.dialog("close"); }; @@ -3134,7 +3134,6 @@ function rcube_calendar_ui(settings) buttons: buttons, width: 520 }).show(); - }; // download the selected event as iCal