Add turn number to editor download for addendums

This commit is contained in:
Tim Van Baak 2018-11-03 19:11:04 -07:00
parent ec953b6a99
commit 706b29d202

View File

@ -132,6 +132,7 @@
"\n" +
articleBody;
var articleFilename = articleTitle.toLowerCase().replace(/[^a-z0-9- ]/g, "").replace(/ +/g, "-");
articleFilename += "-" + articleTurn.toString();
var downloader = document.createElement("a");
downloader.setAttribute("href", "data:text/plain;charset=utf-8," + encodeURIComponent(articleText));
downloader.setAttribute("download", articleFilename);