Skip confirmation popup if backend support undelete (#393)
This commit is contained in:
parent
df8a75da05
commit
778bc7cefc
2 changed files with 3 additions and 2 deletions
|
@ -1533,7 +1533,7 @@ function rcube_calendar_ui(settings)
|
||||||
var update_event_confirm = function(action, event, data)
|
var update_event_confirm = function(action, event, data)
|
||||||
{
|
{
|
||||||
if (!data) data = event;
|
if (!data) data = event;
|
||||||
var decline = false, notify = false, html = '';
|
var decline = false, notify = false, html = '', cal = me.calendars[event.calendar];
|
||||||
|
|
||||||
// event has attendees, ask whether to notify them
|
// event has attendees, ask whether to notify them
|
||||||
if (has_attendees(event)) {
|
if (has_attendees(event)) {
|
||||||
|
@ -1618,7 +1618,7 @@ function rcube_calendar_ui(settings)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// show regular confirm box when deleting
|
// show regular confirm box when deleting
|
||||||
else if (action == 'remove') {
|
else if (action == 'remove' && !cal.undelete) {
|
||||||
if (!confirm(rcmail.gettext('deleteventconfirm', 'calendar')))
|
if (!confirm(rcmail.gettext('deleteventconfirm', 'calendar')))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,6 +161,7 @@ class calendar_ui
|
||||||
$prop['attendees'] = $this->cal->driver->attendees;
|
$prop['attendees'] = $this->cal->driver->attendees;
|
||||||
$prop['freebusy'] = $this->cal->driver->freebusy;
|
$prop['freebusy'] = $this->cal->driver->freebusy;
|
||||||
$prop['attachments'] = $this->cal->driver->attachments;
|
$prop['attachments'] = $this->cal->driver->attachments;
|
||||||
|
$prop['undelete'] = $this->cal->driver->undelete;
|
||||||
$jsenv[$id] = $prop;
|
$jsenv[$id] = $prop;
|
||||||
|
|
||||||
$html_id = html_identifier($id);
|
$html_id = html_identifier($id);
|
||||||
|
|
Loading…
Add table
Reference in a new issue