b99f96b3ed42f3644a19890bbb259ab1ca005008 chmalee Tue Jan 27 11:16:35 2026 -0800 HubSpace: when viewing one specific hub directory and then clicking the upload button, make the default choice for the hub name be the on that is being viewed, refs #36830 diff --git src/hg/js/hgMyData.js src/hg/js/hgMyData.js index 8b80d778fe6..0a5f15745c7 100644 --- src/hg/js/hgMyData.js +++ src/hg/js/hgMyData.js @@ -1,1585 +1,1594 @@ /* 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, and // space becomes '+': let splitVal = value.split('/'); splitVal.forEach((ele, ix) => { if (ele == " ") { splitVal[ix] = '+'; } else { 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