Show saving... message when submitting calendar edit dialog
This commit is contained in:
parent
166bf43f2d
commit
5b24abd33f
2 changed files with 3 additions and 0 deletions
|
@ -508,6 +508,8 @@ class calendar extends rcube_plugin
|
|||
$this->rc->output->show_message($error_msg, 'error');
|
||||
}
|
||||
|
||||
$this->rc->output->command('plugin.unlock_saving');
|
||||
|
||||
// TODO: keep view and date selection
|
||||
if ($success && $reload)
|
||||
$this->rc->output->redirect('');
|
||||
|
|
|
@ -1625,6 +1625,7 @@ function rcube_calendar_ui(settings)
|
|||
if (calendar.id)
|
||||
data.id = calendar.id;
|
||||
|
||||
me.saving_lock = rcmail.set_busy(true, 'calendar.savingdata');
|
||||
rcmail.http_post('calendar', { action:(calendar.id ? 'edit' : 'new'), c:data });
|
||||
$dialog.dialog("close");
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue