mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
WIP SpamTitan integration:
- Add actions into mail contextmenu
This commit is contained in:
parent
76d5dcb6e1
commit
6832bc778e
@ -1305,6 +1305,16 @@ class mail_ui
|
||||
{
|
||||
unset($actions['save']['children']['save2filemanager']);
|
||||
}
|
||||
if ($GLOBALS['egw_info']['apps']['stylite'])
|
||||
{
|
||||
$spamtitan_actions = stylite_mail_spamtitan::getActions();
|
||||
$group++;
|
||||
foreach ($spamtitan_actions as &$action)
|
||||
{
|
||||
$action['group'] = $group;
|
||||
}
|
||||
$actions = array_merge($actions, $spamtitan_actions);
|
||||
}
|
||||
return $actions;
|
||||
}
|
||||
|
||||
|
@ -5478,6 +5478,19 @@ app.classes.mail = AppJS.extend(
|
||||
et2_dialog.BUTTON_YES_NO, et2_dialog.WARNING_MESSAGE, undefined, egw);
|
||||
},
|
||||
|
||||
/**
|
||||
* Actions handler
|
||||
*
|
||||
* @param {object} _action egw action
|
||||
* @param {object} _sender nm row
|
||||
*/
|
||||
spamtitan_actions: function (_action, _sender)
|
||||
{
|
||||
var id = _sender[0].id;
|
||||
var data = egw.dataGetUIDdata(id);
|
||||
this.egw.json('stylite.stylite_mail_spamtitan.ajax_action', [_action.id, {}]).sendRequest(true);
|
||||
},
|
||||
|
||||
/**
|
||||
* Implement mobile view
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user