mirror of
https://github.com/Novartis/cellxgene-gateway.git
synced 2026-10-08 20:38:12 +08:00
#14 remove random characters from suffix
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
// neandertal javascript
|
// neandertal javascript
|
||||||
const new_annotation_callback = (() =>{
|
const new_annotation_callback = (() =>{
|
||||||
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
|
const suffix = `.csv`;
|
||||||
const pickn = (c, n) => n==0?'':c.substr(Math.random()*c.length,1) + pickn(c,n-1);
|
|
||||||
const suffix = `_${pickn(chars,8)}.csv`;
|
|
||||||
return (e) => {
|
return (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const el = $(e.target);
|
const el = $(e.target);
|
||||||
|
|||||||
Reference in New Issue
Block a user