From 6d984c04c16b0f753011c0a47c203e6b4ae0ea62 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sun, 22 Dec 2019 13:29:57 +0000 Subject: [PATCH] [bug] fix link and group edit and add state not resetting --- src/js/link.js | 2 ++ src/js/state.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/link.js b/src/js/link.js index 0b8b55a5..eb0c7503 100644 --- a/src/js/link.js +++ b/src/js/link.js @@ -1489,6 +1489,7 @@ var link = (function() { var successAction = function() { var copyStagedLink = JSON.parse(JSON.stringify(stagedLink)); bookmarks.mod.edit.link(copyStagedLink); + edit.item.close(); data.save(); groupAndItems(); render.focus.item.current.edit(copyStagedLink); @@ -1533,6 +1534,7 @@ var link = (function() { var successAction = function() { var copyStagedGroup = JSON.parse(JSON.stringify(stagedGroup)); bookmarks.mod.edit.group(copyStagedGroup); + edit.group.close(); data.save(); groupAndItems(); render.focus.group.current.edit(copyStagedGroup); diff --git a/src/js/state.js b/src/js/state.js index 3c7844df..93f6f257 100644 --- a/src/js/state.js +++ b/src/js/state.js @@ -196,7 +196,7 @@ var state = (function() { border: 0, order: "headerbody", add: false, - edit: true + edit: false }, layout: { alignment: "centercenter",