ca23d9f5054fc863beb18d7ef4919b550b2f8d9c chmalee Mon Jun 1 10:45:37 2026 -0700 Allow dot in genome names in hubspace uploads, refs #37665 diff --git src/hg/js/hgMyData.js src/hg/js/hgMyData.js index 86e84d8f27d..ab94bbd7b77 100644 --- src/hg/js/hgMyData.js +++ src/hg/js/hgMyData.js @@ -1,2528 +1,2530 @@ /* jshint esversion: 8 */ 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