From 26754bf130c3f4e4f69ea09e2ff23be7e0b01251 Mon Sep 17 00:00:00 2001 From: Adam Schubert Date: Wed, 1 Apr 2020 09:22:39 +0200 Subject: [PATCH] feat: Enable select2 for multiselect datagrid filters --- assets/js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/main.js b/assets/js/main.js index af328f28..ed11247f 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -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());