diff options
author | Andrew Dolgov <[email protected]> | 2017-02-26 17:37:37 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-26 17:37:37 +0300 |
commit | 6f11b1d2856359aaca5f7ecc27eec8f27e6d8ce6 (patch) | |
tree | c1df684dd1896cacfb0ad84833def598530bdf87 /js/common.js | |
parent | e3c6ca80943ef45079ab0557e9b7a985146d21eb (diff) |
do not regenerate entire offline list when something is removed
Diffstat (limited to 'js/common.js')
-rw-r--r-- | js/common.js | 3 |
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 = []; |