Skip to content

Commit cb49944

Browse files
authored
Merge pull request #2998 from evanboho/master
Avoid duplication of filters on back
2 parents 84503af + 9523a33 commit cb49944

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/assets/javascripts/rails_admin/ra.filter-box.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,11 @@
157157
break;
158158
}
159159

160+
var filterContainerId = field_name + '-' + index + '-filter-container';
161+
$('p#' + filterContainerId).remove();
162+
160163
var $content = $('<p>')
164+
.attr('id', filterContainerId)
161165
.addClass('filter form-search')
162166
.append(
163167
$('<span class="label label-info form-label"></span>')

0 commit comments

Comments
 (0)