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/utils.js src/hg/js/utils.js index 0f4f1ae..28f0a0a 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -3454,30 +3454,33 @@ ddcl.reinit($('div#advancedTab').find('select.filterBy'),false); },20); } if ($('div#filesFound').length === 1) { if (id === 'filesTab') $('div#filesFound').show(); else $('div#filesFound').hide(); } if ($('div#found').length === 1) { if (id !== 'filesTab') $('div#found').show(); else $('div#found').hide(); } + // explicitly set the hidden form input for the current tab because jquery-ui won't do + // it for us anymore + $("#currentTab").val(id); } }; function escapeJQuerySelectorChars(str) { // replace characters which are reserved in jQuery selectors // (surprisingly jQuery does not have a built in function to do this). return str.replace(/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~"])/g,'\\$1'); } var preloadImages = []; var preloadImageCount = 0; function preloadImg(url) // DEAD CODE? { // force an image to be loaded (e.g. for images in menus or dialogs). preloadImages[preloadImageCount] = new Image();