* Notifications: remove calendar notification from the list after applying any of actions

This commit is contained in:
Hadi Nategh 2019-08-14 16:30:59 +02:00
parent 70fd9a6529
commit a3d0a6e9ab
2 changed files with 4 additions and 4 deletions

View File

@ -878,19 +878,19 @@ END:VALARM';
'id' => 'A',
'caption' => lang('Accept'),
'icon' => 'accepted',
'onExecute' => 'egw().json("calendar.calendar_uiforms.ajax_status",['.$params['data']['event_id'].','.$params['data']['user_id'].','.'"A"'.']).sendRequest(true);'
'onExecute' => 'egw().json("calendar.calendar_uiforms.ajax_status",['.$params['data']['event_id'].','.$params['data']['user_id'].','.'"A"'.']).sendRequest(true);this.button_delete(arguments[0], arguments[1]);'
),
array(
'id' => 'R',
'caption' => lang('Reject'),
'icon' => 'rejected',
'onExecute' => 'egw().json("calendar.calendar_uiforms.ajax_status",['.$params['data']['event_id'].','.$params['data']['user_id'].','.'"R"'.']).sendRequest(true);'
'onExecute' => 'egw().json("calendar.calendar_uiforms.ajax_status",['.$params['data']['event_id'].','.$params['data']['user_id'].','.'"R"'.']).sendRequest(true);this.button_delete(arguments[0], arguments[1]);'
),
array(
'id' => 'T',
'caption' => lang('Tentative'),
'icon' => 'tentative',
'onExecute' => 'egw().json("calendar.calendar_uiforms.ajax_status",['.$params['data']['event_id'].','.$params['data']['user_id'].','.'"T"'.']).sendRequest(true);'
'onExecute' => 'egw().json("calendar.calendar_uiforms.ajax_status",['.$params['data']['event_id'].','.$params['data']['user_id'].','.'"T"'.']).sendRequest(true);this.button_delete(arguments[0], arguments[1]);'
)
);
}

View File

@ -339,7 +339,7 @@
.addClass('et2_button')
.css({'background-image':'url('+egw.image(notifymessages[id].data.actions[action].icon,notifymessages[id].data.app)+')'})
.text(notifymessages[id].data.actions[action].caption)
.click(jQuery.proxy(func,this))
.click(jQuery.proxy(func, this, [$message]))
.prependTo($actions_container);
}
$actions_container.appendTo($message);