Fix a bug when moving a bookmark then deleting from the group

This commit is contained in:
Neil Brommer 2018-01-13 16:14:29 -08:00
parent f579c5a204
commit 0fe65f3f68

View file

@ -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();
}