Etemplate - also submit action data

This commit is contained in:
nathangray
2019-05-14 16:43:15 -06:00
parent 1497f6f026
commit edfd5fd24d
3 changed files with 22 additions and 2 deletions

View File

@ -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)

View File

@ -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;
};