mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Etemplate - also submit action data
This commit is contained in:
parent
1497f6f026
commit
edfd5fd24d
@ -184,7 +184,12 @@ class admin_customfields
|
||||
{
|
||||
if(in_array($data['id'],$content['nm']['selected']))
|
||||
{
|
||||
$cmd = new admin_cmd_customfield($this->appname, array('id' => $data['id'],'name' => $name));
|
||||
$cmd = new admin_cmd_customfield(
|
||||
$this->appname,
|
||||
array('id' => $data['id'],'name' => $name),
|
||||
null,
|
||||
$content['nm']['admin_cmd']
|
||||
);
|
||||
$cmd->run();
|
||||
unset($this->fields[$name]);
|
||||
}
|
||||
@ -520,6 +525,7 @@ class admin_customfields
|
||||
'caption' => 'Delete',
|
||||
'confirm' => 'Delete this entry',
|
||||
'confirm_multiple' => 'Delete these entries',
|
||||
'policy_confirmation' => 'Oh yeah',
|
||||
'group' => ++$group,
|
||||
'disableClass' => 'rowNoDelete',
|
||||
),
|
||||
|
@ -683,6 +683,17 @@ egwAction.prototype._check_confirm = function(_senders, _target)
|
||||
var self = this;
|
||||
if(msg.trim().length > 0)
|
||||
{
|
||||
if(this.data.policy_confirmation && egw.app('policy'))
|
||||
{
|
||||
egw.includeJS(egw.link('/policy/js/app.js'), function() {
|
||||
if(typeof app.policy === 'undefined' || typeof app.policy.confirm === 'undefined')
|
||||
{
|
||||
app.policy = new app.classes.policy();
|
||||
}
|
||||
app.policy.confirm(self, _senders, _target);
|
||||
});
|
||||
return;
|
||||
}
|
||||
et2_dialog.show_dialog(function(_button)
|
||||
{
|
||||
if (_button == et2_dialog.YES_BUTTON)
|
||||
|
@ -231,13 +231,16 @@ function nm_action(_action, _senders, _target, _ids)
|
||||
// Fake a getValue() function
|
||||
var old_value = nextmatch.getValue;
|
||||
var value = nextmatch.getValue();
|
||||
jQuery.extend(value, this.activeFilters, {
|
||||
jQuery.extend(value, _action.data, this.activeFilters, {
|
||||
"selected": idsArr,
|
||||
"select_all": _ids.all,
|
||||
"checkboxes": checkbox_values
|
||||
});
|
||||
value[nextmatch.options.settings.action_var]= _action.id;
|
||||
|
||||
// Don't try to send the nextmatch
|
||||
delete value['nextmatch'];
|
||||
|
||||
nextmatch.getValue = function() {
|
||||
return value;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user