Commit 0754ccfb authored by Serge S. Koval's avatar Serge S. Koval

Fixed #414. If filter has options set, ignore Select2 wrapper in client-side code

parent 36cb78e7
...@@ -10,7 +10,8 @@ var AdminFilters = function(element, filters_element, operations, options, types ...@@ -10,7 +10,8 @@ var AdminFilters = function(element, filters_element, operations, options, types
function changeOperation() { function changeOperation() {
var $row = $(this).closest('tr'); var $row = $(this).closest('tr');
var $el = $('.filter-val', $row); var $el = $('.filter-val:input', $row);
console.log($el);
var count = getCount($el.attr('name')); var count = getCount($el.attr('name'));
$el.attr('name', 'flt' + count + '_' + $(this).val()); $el.attr('name', 'flt' + count + '_' + $(this).val());
$('button', $root).show(); $('button', $root).show();
......
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