Skip to content

Commit 2a35e5a

Browse files
committed
Added search option to multiselect
1 parent 5f7ad0a commit 2a35e5a

File tree

5 files changed

+27
-13
lines changed

5 files changed

+27
-13
lines changed

resources/assets/css/app.css

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/assets/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/assets/js/app.js.LICENSE.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
2-
* Bootstrap v4.6.0 (https://getbootstrap.com/)
3-
* Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2+
* Bootstrap v4.5.3 (https://getbootstrap.com/)
3+
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
55
*/
66

@@ -21,35 +21,35 @@
2121
*/
2222

2323
/*!
24-
* Chart.js v3.6.0
24+
* Chart.js v3.2.1
2525
* https://www.chartjs.org
2626
* (c) 2021 Chart.js Contributors
2727
* Released under the MIT License
2828
*/
2929

3030
/*!
31-
* Sizzle CSS Selector Engine v2.3.6
31+
* Sizzle CSS Selector Engine v2.3.5
3232
* https://sizzlejs.com/
3333
*
3434
* Copyright JS Foundation and other contributors
3535
* Released under the MIT license
3636
* https://js.foundation/
3737
*
38-
* Date: 2021-02-16
38+
* Date: 2020-03-14
3939
*/
4040

4141
/*!
42-
* jQuery JavaScript Library v3.6.0
42+
* jQuery JavaScript Library v3.5.1
4343
* https://jquery.com/
4444
*
4545
* Includes Sizzle.js
4646
* https://sizzlejs.com/
4747
*
48-
* Copyright OpenJS Foundation and other contributors
48+
* Copyright JS Foundation and other contributors
4949
* Released under the MIT license
5050
* https://jquery.org/license
5151
*
52-
* Date: 2021-03-02T17:08Z
52+
* Date: 2020-05-04T22:49Z
5353
*/
5454

5555
/*!

resources/js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ const appJquery = function() {
264264
return labels.join(' - ');
265265
},
266266
includeSelectAllOption: true,
267+
selectAllJustVisible: false,
267268
selectAllName: 'select-all-owner',
269+
enableFiltering: true,
270+
enableCaseInsensitiveFiltering: true
268271
});
269272

270273
$('select[name="label_id[]"]').multiselect({
@@ -279,7 +282,10 @@ const appJquery = function() {
279282
return labels.join(' - ');
280283
},
281284
includeSelectAllOption: true,
285+
selectAllJustVisible: false,
282286
selectAllName: 'select-all-label',
287+
enableFiltering: true,
288+
enableCaseInsensitiveFiltering: true
283289
});
284290
},
285291

resources/sass/_custom.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,12 @@ dt {
177177
.filter-active .custom-select{
178178
color: #28a745 !important;
179179
border-color: #28a745 !important;
180+
}
181+
182+
.multiselect-container.dropdown-menu{
183+
padding: 0 0 0.5rem 0 !important;
184+
}
185+
186+
.multiselect-container .multiselect-filter{
187+
margin-bottom: 0.5rem;
180188
}

0 commit comments

Comments
 (0)