From 0fe65f3f68088ca6788e1f7bf2924c550e4a3c04 Mon Sep 17 00:00:00 2001 From: Neil Brommer Date: Sat, 13 Jan 2018 16:14:29 -0800 Subject: [PATCH] Fix a bug when moving a bookmark then deleting from the group --- js/deleteBookmarks.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/deleteBookmarks.js b/js/deleteBookmarks.js index 82936a9..6405c26 100644 --- a/js/deleteBookmarks.js +++ b/js/deleteBookmarks.js @@ -49,7 +49,6 @@ function deleteBookmark(e) { var groupName = item.parent().parent().data("group-name"); var groupIndex = item.parent().parent().data("group-index"); var bookmarkIndex = item.index(); - var bookmarkItem = $("#" + groupName + "-" + bookmarkIndex); var openDBRequest = window.indexedDB.open("bookmarks"); @@ -63,7 +62,7 @@ function deleteBookmark(e) { groupData.bookmarks = removeFromArray(groupData.bookmarks, bookmarkIndex); groupsStore.put(groupData); - bookmarkItem.hide(300, "swing", function () { bookmarkItem.remove(); }); + item.hide(300, "swing", function () { bookmarkItem.remove(); }); db.close(); }