From 6f11b1d2856359aaca5f7ecc27eec8f27e6d8ce6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 26 Feb 2017 17:37:37 +0300 Subject: do not regenerate entire offline list when something is removed --- js/common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'js/common.js') diff --git a/js/common.js b/js/common.js index 34467ae..a400a17 100644 --- a/js/common.js +++ b/js/common.js @@ -1,8 +1,7 @@ -function offline_remove(elem, callback) { +function offline_remove(id, callback) { if (confirm("Remove download?")) { - var id = elem.getAttribute("data-book-id"); var cacheId = "epube-book." + id; var promises = []; -- cgit v1.2.3