Skip to content

Commit

Permalink
adding a way to configure the no found message
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeESSousa committed Nov 9, 2015
1 parent 9b86312 commit f0e31cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion angular-chosen.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@
}

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

iElm.chosen({
width: '100%',
max_selected_options: maxSelection,
disable_search_threshold: searchThreshold,
search_contains: true,
allow_single_deselect: allowSingleDeselect
allow_single_deselect: allowSingleDeselect,
no_results_text: noResultsText
});

iElm.on('change', function () {
Expand Down

0 comments on commit f0e31cd

Please sign in to comment.