mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 16:35:02 +02:00
Etemplate - also submit action data
This commit is contained in:
@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user