summaryrefslogtreecommitdiff
path: root/js/common.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-02-26 17:37:37 +0300
committerAndrew Dolgov <[email protected]>2017-02-26 17:37:37 +0300
commit6f11b1d2856359aaca5f7ecc27eec8f27e6d8ce6 (patch)
treec1df684dd1896cacfb0ad84833def598530bdf87 /js/common.js
parente3c6ca80943ef45079ab0557e9b7a985146d21eb (diff)
do not regenerate entire offline list when something is removed
Diffstat (limited to 'js/common.js')
-rw-r--r--js/common.js3
1 files changed, 1 insertions, 2 deletions
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 = [];