Skip to content

Commit

Permalink
Remove chosen
Browse files Browse the repository at this point in the history
  • Loading branch information
Genia Kazymova committed Jan 30, 2025
1 parent b69dcb4 commit 49cb9a9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions app/assets/javascripts/trln_argon/advanced_search_scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Blacklight.onLoad(function() {
});

// fix labeling for fields generated by Chosen jquery library (https://harvesthq.github.io/chosen/)
$("[id$='_chosen']").each(function() {
$the_id = $(this).attr('id');
$aria_label = $(this).attr('id').replace('_chosen', '_label');
$('#' + $the_id + ' .chosen-search-input').attr('aria-labelledby', $aria_label);
});
// $("[id$='_chosen']").each(function() {
// $the_id = $(this).attr('id');
// $aria_label = $(this).attr('id').replace('_chosen', '_label');
// $('#' + $the_id + ' .chosen-search-input').attr('aria-labelledby', $aria_label);
// });

});
});
14 changes: 7 additions & 7 deletions app/assets/javascripts/trln_argon/advanced_search_select.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Blacklight.onLoad(function() {
$('.advanced-search-facet-select').chosen({
allow_single_deselect: true,
no_results_text: 'No results matched',
width: '100%'
});
});
// Blacklight.onLoad(function() {
// $('.advanced-search-facet-select').chosen({
// allow_single_deselect: true,
// no_results_text: 'No results matched',
// width: '100%'
// });
// });
4 changes: 3 additions & 1 deletion app/assets/javascripts/trln_argon/trln_argon.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
//= require trln_argon/progressive_links.js
//= require trln_argon/physical_media_facet.js
//= require bootstrap
//= require chosen.jquery.js
//= require controllers/index.js
//= require controllers/application.js
//= require controllers/multi_select_controller.js
//= require blacklight/hierarchy/hierarchy.js
//= require trln_argon/location_facet.js
//= require trln_argon/advanced_search_select.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@
@import 'blacklight/hierarchy/hierarchy';

@import 'font-awesome';

@import 'chosen';

0 comments on commit 49cb9a9

Please sign in to comment.