edbd78ba2667d41249ee0c521d49304c038ffeb1 galt Fri Feb 19 17:27:19 2021 -0800 Added counts to hgTrackUi facets. refs #25321 diff --git src/hg/js/utils.js src/hg/js/utils.js index b64764b..93b5e0e 100644 --- src/hg/js/utils.js +++ src/hg/js/utils.js @@ -1240,31 +1240,31 @@ function waitMaskClear() { // Clears the waitMask var waitMask = normed($('#waitMask')); if (waitMask) $(waitMask).hide(); } function waitMaskSetup(timeOutInMs) { // Sets up the waitMask to block page manipulation until cleared // Find or create the waitMask (which masks the whole page) var waitMask = normed($('#waitMask')); if (!waitMask) { // create the waitMask - $("body").append("<div id='waitMask' class='waitMask');'></div>"); + $("body").append("<div id='waitMask' class='waitMask'></div>"); waitMask = normed($('#waitMask')); } $(waitMask).css({opacity:0.0,display:'block',top: '0px', height: $(document).height().toString() + 'px' }); // Special for IE, since it takes so long, make mask obvious //if (theClient.isIePre11()) // $(waitMask).css({opacity:0.4,backgroundColor:'gray'}); // Things could fail, so always have a timeout. if (!timeOutInMs) // works for undefined, null and 0 timeOutInMs = 30000; // IE can take forever! if (timeOutInMs > 0) setTimeout(waitMaskClear,timeOutInMs); // Just in case @@ -1840,31 +1840,31 @@ { // Setting a max height to scroll dropdownchecklists but // multiSel is hidden when this is done, so it's position and height must be estimated. var pos = $(multiSel).closest(':visible').offset().top + 30; if (pos <= 0) pos = 260; // Special mess since the filterBy's on non-current tabs will calculate pos badly. var tabbed = normed($('input#currentTab')); if (tabbed) { var tabDiv = $(multiSel).parents('div#'+ $(tabbed).attr('value')); if (!tabDiv || $(tabDiv).length === 0) { pos = 360; } } var maxHeight = $(window).height() - pos; - var selHeight = $(multiSel).children().length * 21; + var selHeight = ($(multiSel).children().length + 1) * 22; if (maxHeight > selHeight) maxHeight = null; return maxHeight; } //////////// Drag and Drop //////////// function tableDragAndDropRegister(thisTable) {// Initialize a table with tableWithDragAndDrop if ($(thisTable).hasClass("tableWithDragAndDrop") === false) return; $(thisTable).tableDnD({ onDragClass: "trDrag", dragHandle: "dragHandle",