mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Allow viewing / editing deleted exceptions by editing the series
This commit is contained in:
parent
ec2f7879d4
commit
5057d1735e
@ -1496,7 +1496,7 @@ function replace_eTemplate_onsubmit()
|
||||
{
|
||||
$content['alarm'] = false;
|
||||
}
|
||||
$content['msg'] = $msg;
|
||||
$content['msg'] = $msg ? $msg : $_GET['msg'];
|
||||
|
||||
if ($view)
|
||||
{
|
||||
|
@ -364,11 +364,11 @@ class calendar_uilist extends calendar_ui
|
||||
{
|
||||
$event['class'] .= 'rowDeleted ';
|
||||
}
|
||||
// Disable everything for 'deleted' exceptions - there's nothing
|
||||
// logical to do except undelete it
|
||||
// Disable delete for 'deleted' exceptions - deleting the exception
|
||||
// would put it back, which you do from the series, not purge it
|
||||
if($search_params['filter'] == 'deleted' && $event['recur_type'])
|
||||
{
|
||||
$event['class'] .= ' rowNoView rowNoDelete rowDeleted';
|
||||
$event['class'] .= ' rowDeleted rowNoDelete';
|
||||
}
|
||||
|
||||
// Filemanager disabled for other applications
|
||||
|
@ -53,11 +53,19 @@ function cal_open(_action, _senders)
|
||||
var id = _senders[0].id;
|
||||
var matches = id.match(/^(?:calendar::)?([0-9]+):([0-9]+)$/);
|
||||
var backup = _action.data;
|
||||
if (matches)
|
||||
var row = _senders[0].iface.node;
|
||||
|
||||
if (matches && !$j(row).hasClass("rowDeleted"))
|
||||
{
|
||||
edit_series(matches[1],matches[2]);
|
||||
return;
|
||||
}
|
||||
else if (matches && $j(row).hasClass("rowDeleted") && _action.data.url)
|
||||
{
|
||||
// Trying to edit a deleted exception, use original event & add a message
|
||||
_senders[0].id = matches[1];
|
||||
_action.data.url += '&msg='+encodeURIComponent(egw.lang('Editing series'));
|
||||
}
|
||||
else if (matches = id.match(/^([a-z_-]+)([0-9]+)/i))
|
||||
{
|
||||
var app = matches[1];
|
||||
|
Loading…
Reference in New Issue
Block a user