Skip to content

Commit

Permalink
Merge pull request #2998 from evanboho/master
Browse files Browse the repository at this point in the history
Avoid duplication of filters on back
  • Loading branch information
mshibuya authored May 4, 2018
2 parents 84503af + 9523a33 commit cb49944
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/assets/javascripts/rails_admin/ra.filter-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@
break;
}

var filterContainerId = field_name + '-' + index + '-filter-container';
$('p#' + filterContainerId).remove();

var $content = $('<p>')
.attr('id', filterContainerId)
.addClass('filter form-search')
.append(
$('<span class="label label-info form-label"></span>')
Expand Down

0 comments on commit cb49944

Please # to comment.