Compare commits

..

1 Commits

Author SHA1 Message Date
Tim Van Baak e2bdf2220a Implement draft previews and constraint analysis 2021-10-13 21:03:39 -07:00
1 changed files with 3 additions and 1 deletions

View File

@ -110,7 +110,9 @@
function submitArticle() function submitArticle()
{ {
ifNoFurtherChanges(() => { ifNoFurtherChanges(() => {
article.state = ArticleState.SUBMITTED; article.state = (article.state == ArticleState.DRAFT
? ArticleState.SUBMITTED
: ArticleState.DRAFT);
update(); update();
}, },
/* timeout: */ 0); /* timeout: */ 0);