Always show the search box in board selector

This commit is contained in:
Frederic Guillot
2016-01-21 21:11:30 -05:00
parent fcdfdeabfa
commit 325e72589d
4 changed files with 15 additions and 5 deletions

View File

@@ -156,10 +156,18 @@ App.prototype.autoComplete = function() {
};
App.prototype.chosen = function() {
$(".chosen-select").chosen({
width: "180px",
no_results_text: $(".chosen-select").data("notfound"),
disable_search_threshold: 10
$(".chosen-select").each(function() {
var searchThreshold = $(this).data("search-threshold");
if (searchThreshold === undefined) {
searchThreshold = 10;
}
$(this).chosen({
width: "180px",
no_results_text: $(this).data("notfound"),
disable_search_threshold: searchThreshold
});
});
$(".select-auto-redirect").change(function() {