From abb3f238c4630f6a5bff5c28743e4720dee8a41e Mon Sep 17 00:00:00 2001 From: Hitesh Ramola Date: Tue, 12 Nov 2019 15:08:57 +0530 Subject: [PATCH] Added condition to be able to work with multiselect plugin What was happening is once we select one option in one of the multiselect box it was then hidden from it as expected to work. But when we search for the element in the same box it shows up Now I have added condition `if(!jQuery(rowcache[i]).is('.ms-elem-selectable.ms-selected'))` to be able to work with multiselect plugin. (https://github.com/lou/multi-select) --- jquery.quicksearch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jquery.quicksearch.js b/jquery.quicksearch.js index 543d828..237ec08 100644 --- a/jquery.quicksearch.js +++ b/jquery.quicksearch.js @@ -44,9 +44,11 @@ for (var i = 0, len = rowcache.length; i < len; i++) { if (val_empty || options.testQuery(query, cache[i], rowcache[i])) { + if(!jQuery(rowcache[i]).is('.ms-elem-selectable.ms-selected')){ options.show.apply(rowcache[i]); noresults = false; numMatchedRows++; + } } else { options.hide.apply(rowcache[i]); }