From 96ac41d8606858879cd28e32edf33e2f96d02803 Mon Sep 17 00:00:00 2001 From: Alok Saldanha Date: Sat, 18 Jan 2020 08:00:19 -0500 Subject: [PATCH] #14 remove random characters from suffix --- cellxgene_gateway/static/js/annotation.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cellxgene_gateway/static/js/annotation.js b/cellxgene_gateway/static/js/annotation.js index 9698a13..73c1739 100644 --- a/cellxgene_gateway/static/js/annotation.js +++ b/cellxgene_gateway/static/js/annotation.js @@ -1,8 +1,6 @@ // neandertal javascript const new_annotation_callback = (() =>{ - const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; - const pickn = (c, n) => n==0?'':c.substr(Math.random()*c.length,1) + pickn(c,n-1); - const suffix = `_${pickn(chars,8)}.csv`; + const suffix = `.csv`; return (e) => { e.preventDefault(); const el = $(e.target);