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

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