b4ecdd4d8460be76fec8cc30bd300ef449cc6fac chmalee Mon Nov 24 15:11:14 2025 -0800 Show a warning message when a user tries hubspace on genome-euro or genome-asia telling them to try on US server. This is a temporary measure until we can add a special workaround to get around the captcha from client code, refs #36290 diff --git src/hg/js/hgMyData.js src/hg/js/hgMyData.js index a39a5bfc2e5..9aa6daa1e2d 100644 --- src/hg/js/hgMyData.js +++ src/hg/js/hgMyData.js @@ -1,1523 +1,1525 @@ /* 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