Skip to content

Commit

Permalink
Merge pull request Islandora-Labs#5 from aOelschlager/jquery-once
Browse files Browse the repository at this point in the history
Fix to use Drupal once library
  • Loading branch information
rosiel authored Oct 25, 2023
2 parents 8c9d63e + 5161114 commit 7de9b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/islandora_install_profile_demo_core.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
return response;
}

$('select[name="sort_order"]').once('islandora_install_profile_demo_core_actions').change(function () {
$(once('islandora_install_profile_demo_core_actions','select[name="sort_order"]')).change(function () {
// Grab ALL elements from the URL and re-use them with this one request
let existing_parameters = unserialize(location.search.slice(1));
let selected_option = 'select[name="sort_order"] option[value="' + $(this).val() + '"]';
Expand Down
2 changes: 1 addition & 1 deletion views_nested_details.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ mystic_behaviors:
css/islandora_install_profile_demo_core.css: { }
dependencies:
- core/jquery
- core/jquery.once
- core/once
- core/drupal.ajax
- core/views.ajax

0 comments on commit 7de9b7e

Please sign in to comment.