Skip to content

Commit 6bf0f5b

Browse files
committed
Merge pull request #14 from FelipeESSousa/master
adding a way to configure the no found message
2 parents 9b86312 + f0e31cd commit 6bf0f5b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

angular-chosen.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,15 @@
6868
}
6969

7070
var allowSingleDeselect = iElm.attr('allow-single-deselect') !== undefined ? true : false;
71+
var noResultsText = iElm.attr('no-results-text') !== undefined ? iAttr.noResultsText : "No results found.";
7172

7273
iElm.chosen({
7374
width: '100%',
7475
max_selected_options: maxSelection,
7576
disable_search_threshold: searchThreshold,
7677
search_contains: true,
77-
allow_single_deselect: allowSingleDeselect
78+
allow_single_deselect: allowSingleDeselect,
79+
no_results_text: noResultsText
7880
});
7981

8082
iElm.on('change', function () {

0 commit comments

Comments
 (0)