From f11c22169f9468ddb2dcdfa51da7327d91d35396 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Jan 2018 18:25:36 +0300 Subject: remove two needless functions --- read.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'read.html') diff --git a/read.html b/read.html index 327a179..0c09b88 100644 --- a/read.html +++ b/read.html @@ -65,13 +65,13 @@
@@ -432,11 +432,19 @@ }); localforage.getItem("epube.disable-transitions").then(function(disable) { - $(".transition_checkbox").attr("checked", disable); + $(".transition_checkbox") + .attr("checked", disable) + .on("click", function() { + localforage.setItem("epube.disable-transitions", this.checked); + }); }); localforage.getItem("epube.disable-swipes").then(function(disable) { - $(".swipe_checkbox").attr("checked", disable); + $(".swipe_checkbox") + .attr("checked", disable) + .on("click", function() { + localforage.setItem("epube.disable-swipes", this.checked); + }); }); localforage.getItem("epube.fontFamily").then(function(font) { -- cgit v1.2.3