mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-30 14:40:34 +02:00
Set account object based on acc_id. Additionally, disable acc_id selectbox if not is_admin_vac
This commit is contained in:
@ -2801,19 +2801,19 @@ app.classes.mail = AppJS.extend(
|
||||
/**
|
||||
* Open seive filter list
|
||||
*
|
||||
* @param {egwAction} action - Action user did to get here
|
||||
* @param {egwActionObject[]} selected - selected row(s)
|
||||
* @param {action} _action
|
||||
* @param {sender} _senders
|
||||
*
|
||||
* @todo get the account id and open the relevant sieve, ATM alway open sieve rules which is set in preferences
|
||||
*/
|
||||
edit_sieve: function(action, selected)
|
||||
edit_sieve: function(_action, _senders)
|
||||
{
|
||||
this.egw.open_link(this.egw.link('/index.php',
|
||||
{
|
||||
'menuaction': 'mail.mail_sieve.index',
|
||||
'ajax': 'true'
|
||||
}
|
||||
));
|
||||
var acc_id = parseInt(_senders[0].id);
|
||||
this.egw.open_link(this.egw.link('/index.php',
|
||||
{
|
||||
'menuaction': 'mail.mail_sieve.index',
|
||||
'acc_id': acc_id,
|
||||
'ajax': 'true'
|
||||
}));
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user