Skip to content

Commit dc889e2

Browse files
committed
adding message
1 parent 46c8151 commit dc889e2

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

css/jquery.filters.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
.search-filters{
66
margin-bottom: 25px;
7+
}
8+
9+
.gray{
10+
color: lightgray;
711
}

jquery.filters.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
showSearchButton: true,
3838
showBorders: true,
3939
globalPadding: '33px',
40+
showShiftSelectMessage: true,
4041
}, options);
4142

4243
filterModal.that = this;
@@ -426,7 +427,8 @@
426427
finalOptions = (undefined == filteredOptions) ? parameter.options : filteredOptions,
427428
selectedValues = [],
428429
relatedTo,
429-
filterInputBox = '';
430+
filterInputBox = '',
431+
shiftSelectMultiMessage = '';
430432

431433
selectedFilter = filterModal.selectedFilterParameters[parameter.attributeName];
432434
if (selectedFilter){
@@ -436,6 +438,10 @@
436438

437439
if (finalOptions.length > 10) {
438440
filterInputBox = '<input class="search-filters search-filters-js" placeholder="search">';
441+
if (filterModal.settings.showShiftSelectMessage) {
442+
shiftSelectMultiMessage = '<p class="gray">shift and click to select multi checkboxes</p>';
443+
}
444+
439445
}
440446

441447
$.each(finalOptions, function (index, filterParameter) {
@@ -453,7 +459,7 @@
453459
'</label></div>';
454460
});
455461

456-
return filterInputBox + checkBoxesHtml;
462+
return filterInputBox + shiftSelectMultiMessage + checkBoxesHtml;
457463
}
458464

459465
function relateToRender(filterParameter){

0 commit comments

Comments
 (0)