de4b38dd0aff87ec136ba422f09cda5c284e0e21 chmalee Fri Aug 14 13:50:43 2020 -0700 Fixing overly ambitious hgTrackUi link selector which broke track search metadata dropdowns and pagination, fixes #25969 and #25968 diff --git src/hg/js/hgTracks.js src/hg/js/hgTracks.js index fb45c16..2f5dc77 100644 --- src/hg/js/hgTracks.js +++ src/hg/js/hgTracks.js @@ -4657,19 +4657,21 @@ $('#hgTrackUiDialog').hide(); // Don't load contextMenu if jquery.contextmenu.js hasn't been loaded if (jQuery.fn.contextMenu) { rightClick.load(imageV2.imgTbl); } } // jquery.history.js Back-button support if (imageV2.enabled && imageV2.backSupport) { imageV2.setupHistory(); } // ensure clicks into hgTrackUi save the cart state $("td a").each( function (tda) { + if (this.href && this.href.indexOf("hgTrackUi") !== -1) { this.onclick = posting.saveSettings; + } }); });