From 81c8b4c11a36705ea264ab862a92b17795c12585 Mon Sep 17 00:00:00 2001 From: sunnavy Date: Tue, 7 Jan 2025 13:12:46 -0500 Subject: [PATCH] Drop relics that were for jQuery UI --- share/static/js/util.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/share/static/js/util.js b/share/static/js/util.js index 0c11f23920..d5d9ca2118 100644 --- a/share/static/js/util.js +++ b/share/static/js/util.js @@ -661,18 +661,7 @@ function refreshCollectionListRow(tr, table, success, error) { }); } -// disable submit on enter in autocomplete boxes -htmx.onLoad(function() { - jQuery('input[data-autocomplete], input.ui-autocomplete-input').each(function() { - var input = jQuery(this); - input.on('keypress', function(event) { - if (event.keyCode === 13 && jQuery('ul.ui-autocomplete').is(':visible')) { - return false; - } - }); - }); -}); function escapeCssSelector(str) { return str.replace(/([^A-Za-z0-9_-])/g,'\\$1'); @@ -757,7 +746,7 @@ jQuery(function() { document.body.addEventListener('htmx:beforeRequest', function(evt) { if ( evt.detail.boosted ) { - document.querySelectorAll('.ui-helper-hidden-accessible, ul[id^="ui-id-"], .cke_autocomplete_panel, #ui-datepicker-div').forEach(function(elt) { + document.querySelectorAll('.cke_autocomplete_panel').forEach(function(elt) { elt.remove(); }); document.getElementById('hx-boost-spinner').classList.remove('d-none');