From b359461d80fd12281e67feb535a8960048aba29e Mon Sep 17 00:00:00 2001 From: ntoff Date: Sat, 18 Nov 2017 04:18:37 +1000 Subject: [PATCH] fix issue with touch ui max slider value being wrong and fix padding if touchui was active the max value was 255, also added a bit of extra width so the button doesn't resize (at least when the button text is in english) --- octoprint_fanspeedslider/static/js/fanslider.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/octoprint_fanspeedslider/static/js/fanslider.js b/octoprint_fanspeedslider/static/js/fanslider.js index 6d0ebe1..c984a6b 100644 --- a/octoprint_fanspeedslider/static/js/fanslider.js +++ b/octoprint_fanspeedslider/static/js/fanslider.js @@ -78,7 +78,7 @@ $(function () { $("#fan-off").remove(); //add new fan controls $("#control-jog-general").find("button").eq(0).before("\ - \ + \ \ \ "); @@ -92,7 +92,7 @@ $(function () { $("#control-jog-extrusion").after("\
\
\ - \ + \ \
\
\ @@ -126,7 +126,7 @@ $(function () { } else { self.control.fanSpeed(self.control.defaultFanSpeed()); - } + } } //update settings in case user changes them, otherwise a refresh of the UI is required