From ffa620bb3a04cbacbd4e23e2b8aad00ecae80da2 Mon Sep 17 00:00:00 2001 From: Survy Vaish Date: Thu, 21 Aug 2014 10:51:29 -0400 Subject: [PATCH 1/2] Fixing Issue #32 - Dynamically changing readOnly option. Solution was discussed here: https://github.com/aterrien/jQuery-Knob/issues/32 --- js/jquery.knob.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/jquery.knob.js b/js/jquery.knob.js index 92b76db..0eaece9 100755 --- a/js/jquery.knob.js +++ b/js/jquery.knob.js @@ -85,6 +85,7 @@ } s._carve().init(); s._configure() + ._listen() ._draw(); }; @@ -416,6 +417,8 @@ this.listen(); } else { + this.$c.unbind("mousedown"); + this.$c.unbind("touchstart"); this.$.attr('readonly', 'readonly'); } From 5c8cd1e74c38bcfd09b1d96e9e39bdabda5a3db5 Mon Sep 17 00:00:00 2001 From: Valiantsin Luchko Date: Wed, 16 Sep 2015 21:00:56 +0300 Subject: [PATCH 2/2] fix for #32 --- js/jquery.knob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.knob.js b/js/jquery.knob.js index 776912d..8f2245f 100644 --- a/js/jquery.knob.js +++ b/js/jquery.knob.js @@ -417,7 +417,7 @@ s._xy()._touch(e); } ); - + this.$.removeAttr('readonly'); this.listen(); } else { this.$c.unbind("mousedown");