Commit 0c6baff2 authored by kroky6's avatar kroky6

[bp/r65995] [FIX] listexecute action submits the relevant editable filters as...

[bp/r65995] [FIX] listexecute action submits the relevant editable filters as well now, since they are in different form, JS added to copy them to the action form
parent 39856a25
......@@ -146,6 +146,13 @@
$('#listexecute-{{$iListExecute}}').submit(function(){
feedback(tr('Action is being executed, please wait.'));
$(this).tikiModal(" ");
var filters = $('#list_filter{{$iListExecute|replace:'wplistexecute-':''}} form').serializeArray();
for(var i = 0, l = filters.length; i < l; i++) {
var inp = $('<input type="hidden">');
inp.attr('name', filters[i].name);
inp.val(filters[i].value);
$('#listexecute-{{$iListExecute}}').append(inp);
}
});
})();
{/jq}
......
......@@ -35,4 +35,13 @@ $('#listexecute-{{$iListExecute}}').find('select[name=list_action]').on('change'
$(this).siblings('input[name=list_input]').hide();
}
});
$('#listexecute-{{$iListExecute}}').submit(function(){
var filters = $('#list_filter{{$iListExecute|replace:'wplistexecute-':''}} form').serializeArray();
for(var i = 0, l = filters.length; i < l; i++) {
var inp = $('<input type="hidden">');
inp.attr('name', filters[i].name);
inp.val(filters[i].value);
$('#listexecute-{{$iListExecute}}').append(inp);
}
});
{/jq}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment