Skip to content

Commit

Permalink
feat: Enable select2 for multiselect datagrid filters
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek authored Apr 1, 2020
1 parent 07ed0bb commit 26754bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ $(document).ready(function () {

function initAjaxDependend() {
$("select").not(".datagrid select").select2({'width': 'resolve'});

$(".datagrid select[multiple]").select2({'width': 'resolve'});

$('.invalidator').each(function () {
var elem = $(this);
elem.data('oldVal', elem.val());
Expand Down

0 comments on commit 26754bf

Please sign in to comment.