[bug] fix link and group edit and add state not resetting

This commit is contained in:
zombieFox 2019-12-22 13:29:57 +00:00
parent 41d183ba66
commit 6d984c04c1
2 changed files with 3 additions and 1 deletions

View File

@ -1489,6 +1489,7 @@ var link = (function() {
var successAction = function() { var successAction = function() {
var copyStagedLink = JSON.parse(JSON.stringify(stagedLink)); var copyStagedLink = JSON.parse(JSON.stringify(stagedLink));
bookmarks.mod.edit.link(copyStagedLink); bookmarks.mod.edit.link(copyStagedLink);
edit.item.close();
data.save(); data.save();
groupAndItems(); groupAndItems();
render.focus.item.current.edit(copyStagedLink); render.focus.item.current.edit(copyStagedLink);
@ -1533,6 +1534,7 @@ var link = (function() {
var successAction = function() { var successAction = function() {
var copyStagedGroup = JSON.parse(JSON.stringify(stagedGroup)); var copyStagedGroup = JSON.parse(JSON.stringify(stagedGroup));
bookmarks.mod.edit.group(copyStagedGroup); bookmarks.mod.edit.group(copyStagedGroup);
edit.group.close();
data.save(); data.save();
groupAndItems(); groupAndItems();
render.focus.group.current.edit(copyStagedGroup); render.focus.group.current.edit(copyStagedGroup);

View File

@ -196,7 +196,7 @@ var state = (function() {
border: 0, border: 0,
order: "headerbody", order: "headerbody",
add: false, add: false,
edit: true edit: false
}, },
layout: { layout: {
alignment: "centercenter", alignment: "centercenter",