Add turn number to editor download for addendums
This commit is contained in:
parent
ec953b6a99
commit
706b29d202
|
@ -132,6 +132,7 @@
|
||||||
"\n" +
|
"\n" +
|
||||||
articleBody;
|
articleBody;
|
||||||
var articleFilename = articleTitle.toLowerCase().replace(/[^a-z0-9- ]/g, "").replace(/ +/g, "-");
|
var articleFilename = articleTitle.toLowerCase().replace(/[^a-z0-9- ]/g, "").replace(/ +/g, "-");
|
||||||
|
articleFilename += "-" + articleTurn.toString();
|
||||||
var downloader = document.createElement("a");
|
var downloader = document.createElement("a");
|
||||||
downloader.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(articleText));
|
downloader.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(articleText));
|
||||||
downloader.setAttribute("download", articleFilename);
|
downloader.setAttribute("download", articleFilename);
|
||||||
|
|
Loading…
Reference in New Issue