diff options
author | Andrew Dolgov <[email protected]> | 2019-02-11 08:59:34 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-02-11 08:59:34 +0300 |
commit | 6836be7ced60a928f1cbf61e2e195a8e270b6727 (patch) | |
tree | 7b3b0addb93340506f81bf4beb62b0f2b0ca8de8 /js/read.js | |
parent | 7d6dabec3be6228a0d5375d4ab96f03ccc10ccba (diff) |
fix keep_ui_checkbox not working
Diffstat (limited to 'js/read.js')
-rw-r--r-- | js/read.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -287,8 +287,8 @@ function init_reader() { localforage.getItem("epube.keep-ui-visible").then(function(keep) { $(".keep_ui_checkbox") .attr("checked", keep) - .on("click", function(elem) { - localforage.setItem("epube.keep-ui-visible", elem.checked); + .on("click", function(evt) { + localforage.setItem("epube.keep-ui-visible", evt.target.checked); }); }); |