openArticleInNewWindow: also, set it active

This commit is contained in:
Andrew Dolgov 2018-12-01 21:54:22 +03:00
parent cc26be0793
commit b284e72d63
1 changed files with 2 additions and 0 deletions

View File

@ -98,6 +98,8 @@ const Article = {
const w = window.open(""); const w = window.open("");
w.opener = null; w.opener = null;
w.location = "backend.php?op=article&method=redirect&id=" + id; w.location = "backend.php?op=article&method=redirect&id=" + id;
Article.setActiveArticleId(id);
}, },
renderArticle: function (article) { renderArticle: function (article) {
Utils.cleanupMemory("content-insert"); Utils.cleanupMemory("content-insert");