83f2164bda909e69ada0e67e8a3e791304ea4702 chmalee Tue Nov 5 10:07:38 2024 -0800 When switching tabs on hgTracks track search, explicitly set the hidden form input for what tab we are on, because jquery-ui tabs does not do that for us anymore, refs #34771 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index a620c1c..9fd14da 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -5452,36 +5452,35 @@ $('#trackSearch').submit(); // This doesn't work with IE or Safari. // $('#searchSubmit').trigger("click"); } }, init: function () { // Track search uses tabs if ($("#tabs").length > 0) { // Search page specific code var val = $('#currentTab').val(); $("#tabs").tabs({ show: function(event, ui) { - $('#currentTab').val(ui.panel.id); + $('#currentTab').val(ui.newPanel[0].id); }, activate: function(event, ui) { findTracks.switchTabs(ui); } }); $('#tabs').show(); - $("#tabs").tabs('option', 'selected', '#' + val); if (val === 'simpleTab' && $('div#found').length < 1) { $('input#simpleSearch').trigger("focus"); } $("#tabs").css('font-family', jQuery('body').css('font-family')); $("#tabs").css('font-size', jQuery('body').css('font-size')); $('.submitOnEnter').on("keydown", trackSearch.searchKeydown); findTracks.normalize(); findTracks.updateMdbHelp(0); } } }; //////// // Download Current Tracks in window Dialog ////////