Skip to content

Commit

Permalink
Merge pull request #14 from FelipeESSousa/master
Browse files Browse the repository at this point in the history
adding a way to configure the no found message
  • Loading branch information
adityasharat committed Dec 11, 2015
2 parents 9b86312 + f0e31cd commit 6bf0f5b
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 6bf0f5b

Please sign in to comment.