Calendar: add client-side confirmation before deleting

This commit is contained in:
nathangray 2021-03-15 09:32:53 -06:00
parent d9df2131fe
commit d6eb8a87de

View File

@ -1101,6 +1101,7 @@ class calendar_uilist extends calendar_ui
'onExecute' => 'javaScript:app.calendar.cal_delete', 'onExecute' => 'javaScript:app.calendar.cal_delete',
'group' => $group, 'group' => $group,
'disableClass' => 'rowNoDelete', 'disableClass' => 'rowNoDelete',
'confirm' => lang('Delete this entry')
); );
// Add in deleted for admins // Add in deleted for admins
if($GLOBALS['egw_info']['server']['calendar_delete_history']) if($GLOBALS['egw_info']['server']['calendar_delete_history'])