-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #482 from trln/TD-1402-vendor-chosen
Fix keyboard nav & icons for Chosen fields in Advanced Search. Fixes …
- Loading branch information
Showing
9 changed files
with
1,858 additions
and
15 deletions.
There are no files selected for viewing
12 changes: 2 additions & 10 deletions
12
app/assets/javascripts/trln_argon/advanced_search_select.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
Blacklight.onLoad(function() { | ||
$('.advanced-search-facet-select').chosen({ | ||
allow_single_deselect: true, | ||
no_results_text: 'No results matched' | ||
no_results_text: 'No results matched', | ||
width: '100%' | ||
}); | ||
|
||
resizeChosen(); | ||
jQuery(window).on('resize', resizeChosen); | ||
}); | ||
|
||
function resizeChosen() { | ||
$(".chosen-container").each(function() { | ||
$(this).attr('style', 'width: 100%'); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.