editor->manage: always highlight the just edited style
This commit is contained in:
parent
3b49d83616
commit
0d2d21b54d
|
@ -483,8 +483,6 @@ function goBackToManage(event) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
history.back();
|
history.back();
|
||||||
} else if (styleId) {
|
|
||||||
sessionStorage.justEditedStyleId = styleId;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1265,6 +1263,7 @@ function init() {
|
||||||
history.replaceState({}, document.title, location.pathname);
|
history.replaceState({}, document.title, location.pathname);
|
||||||
}
|
}
|
||||||
styleId = style.id;
|
styleId = style.id;
|
||||||
|
sessionStorage.justEditedStyleId = styleId;
|
||||||
setStyleMeta(style);
|
setStyleMeta(style);
|
||||||
window.onload = () => {
|
window.onload = () => {
|
||||||
window.onload = null;
|
window.onload = null;
|
||||||
|
@ -1505,6 +1504,7 @@ function getMeta(e) {
|
||||||
|
|
||||||
function saveComplete(style) {
|
function saveComplete(style) {
|
||||||
styleId = style.id;
|
styleId = style.id;
|
||||||
|
sessionStorage.justEditedStyleId = styleId;
|
||||||
setCleanGlobal();
|
setCleanGlobal();
|
||||||
|
|
||||||
// Go from new style URL to edit style URL
|
// Go from new style URL to edit style URL
|
||||||
|
|
Loading…
Reference in New Issue
Block a user