1ee60b0f512688d475db239e379fb10c86ce1528 chmalee Wed Apr 9 12:13:51 2025 -0700 remove some copy from the hubspace UI as requested by QA. fix dates when set by the js to use the same format as returned by the server, fix a bug when deleting files that preventing the selected file information from going away, refs #31058 diff --git src/hg/js/hgMyData.js src/hg/js/hgMyData.js index d390af65b91..dc60b4117e4 100644 --- src/hg/js/hgMyData.js +++ src/hg/js/hgMyData.js @@ -1,1410 +1,1418 @@ /* 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