Commit 96ac41d8 authored by Alok Saldanha's avatar Alok Saldanha
Browse files

#14 remove random characters from suffix

parent 525a9691
// 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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment