Always show the search box in board selector
This commit is contained in:
parent
fcdfdeabfa
commit
325e72589d
|
|
@ -9,6 +9,7 @@ New features:
|
|||
|
||||
Improvements:
|
||||
|
||||
* Always show the search box in board selector
|
||||
* Replace logout link by a dropdown menu
|
||||
* Handle notification for group members attached to a project
|
||||
* Return the highest role for a project when a user is member of multiple groups
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
<select id="board-selector"
|
||||
class="chosen-select select-auto-redirect"
|
||||
tabindex="-1"
|
||||
data-search-threshold="0"
|
||||
data-notfound="<?= t('No results match:') ?>"
|
||||
data-placeholder="<?= t('Display another project') ?>"
|
||||
data-redirect-regex="PROJECT_ID"
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue