forked from extern/egroupware
* Notifications: remove calendar notification from the list after applying any of actions
This commit is contained in:
parent
70fd9a6529
commit
a3d0a6e9ab
@ -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]);'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user