b7f8440d095182812999bab176e7d4fbc68b49ea chmalee Thu Aug 14 15:19:43 2025 -0700 Fix hs1 label to set the right dropdown value to hs1 in the default genome choices dropdown. Fix bug bug that we should only check for pre-existing hub.txt when we are uploading to an already existing hub, refs #31058 diff --git src/hg/js/hgMyData.js src/hg/js/hgMyData.js index ea4e818fa9e..aa119c77098 100644 --- src/hg/js/hgMyData.js +++ src/hg/js/hgMyData.js @@ -1,1502 +1,1504 @@ /* jshint esnext: true */ var debugCartJson = true; function prettyFileSize(num) { if (!num) {return "0B";} if (num < (1024 * 1024)) { return `${(num/1024).toFixed(1)}KB`; } else if (num < (1024 * 1024 * 1024)) { return `${((num/1024)/1024).toFixed(1)}MB`; } else { return `${(((num/1024)/1024)/1024).toFixed(1)}GB`; } } function cgiEncode(value) { // copy of cheapgi.c:cgiEncode except we are explicitly leaving '/' characters: let splitVal = value.split('/'); splitVal.forEach((ele, ix) => { splitVal[ix] = encodeURIComponent(ele); }); return splitVal.join('/'); } function cgiDecode(value) { // decode an encoded value return decodeURIComponent(value); } function setDbSelectFromAutocomplete(selectEle, item) { // this has been bound to the