diff options
author | Andrew Dolgov <[email protected]> | 2018-11-29 15:53:10 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-11-29 15:53:10 +0300 |
commit | 50b99afa069931418d663deb6e5515006558e4dd (patch) | |
tree | 01793b81bad42f95a3005d12071fae2927508749 /js/offline.js | |
parent | b026d16edeaebd6dbeba66198644ee4a2ce02dae (diff) |
move inline scripts from read.html to read.js; fix some eslint-related stuff
Diffstat (limited to 'js/offline.js')
-rw-r--r-- | js/offline.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/offline.js b/js/offline.js index 6fd3ddd..4f9a13a 100644 --- a/js/offline.js +++ b/js/offline.js @@ -2,6 +2,7 @@ /* global localforage, Holder */ +/* exported offline_search */ function offline_search() { const query = $(".search_query").val(); @@ -12,14 +13,17 @@ function offline_search() { return false; } +/* exported offline_remove2 */ function offline_remove2(elem) { const bookId = elem.getAttribute("data-book-id"); + /* global offline_remove */ return offline_remove(bookId, function() { $("#cell-" + bookId).remove(); }); } +/* exported offline_clear */ function offline_clear() { if (confirm("Remove all offline data?")) { @@ -151,6 +155,7 @@ function populate_list() { } +/* exported show_summary */ function show_summary(elem) { const bookId = elem.getAttribute("data-book-id"); |