From 0d2d21b54df8dcfe2bbf7d2ebd7ce9a5b139a2cd Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 23 Jul 2017 18:33:55 +0300 Subject: [PATCH] editor->manage: always highlight the just edited style --- edit/edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edit/edit.js b/edit/edit.js index 316b5ea5..59ce6fbe 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -483,8 +483,6 @@ function goBackToManage(event) { event.stopPropagation(); event.preventDefault(); history.back(); - } else if (styleId) { - sessionStorage.justEditedStyleId = styleId; } } @@ -1265,6 +1263,7 @@ function init() { history.replaceState({}, document.title, location.pathname); } styleId = style.id; + sessionStorage.justEditedStyleId = styleId; setStyleMeta(style); window.onload = () => { window.onload = null; @@ -1505,6 +1504,7 @@ function getMeta(e) { function saveComplete(style) { styleId = style.id; + sessionStorage.justEditedStyleId = styleId; setCleanGlobal(); // Go from new style URL to edit style URL