Fixed doubled confirmation message after event delete with enabled Undo feature
This commit is contained in:
parent
6bfaf4be1e
commit
cdca86d15b
1 changed files with 2 additions and 1 deletions
|
@ -508,6 +508,7 @@ class calendar extends rcube_plugin
|
||||||
. ' ' . html::a(array('onclick' => sprintf("%s.http_request('event', 'action=undo', %s.display_message('', 'loading'))",
|
. ' ' . html::a(array('onclick' => sprintf("%s.http_request('event', 'action=undo', %s.display_message('', 'loading'))",
|
||||||
JS_OBJECT_NAME, JS_OBJECT_NAME)), rcube_label('undo'));
|
JS_OBJECT_NAME, JS_OBJECT_NAME)), rcube_label('undo'));
|
||||||
$this->rc->output->show_message($msg, 'confirmation', null, true, $undo_time);
|
$this->rc->output->show_message($msg, 'confirmation', null, true, $undo_time);
|
||||||
|
$got_msg = true;
|
||||||
}
|
}
|
||||||
else if ($success) {
|
else if ($success) {
|
||||||
$this->rc->output->show_message('calendar.successremoval', 'confirmation');
|
$this->rc->output->show_message('calendar.successremoval', 'confirmation');
|
||||||
|
|
Loading…
Add table
Reference in a new issue