From 536ae2f0fc8222b1210f394ffd81b6f229703b5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C7=9Du=C4=B1=C9=A5suoo=C9=AF?= Date: Fri, 5 Aug 2016 17:42:19 +0800 Subject: [PATCH] always load settings on tab change --- octoprint_multi_colors/static/js/multi_colors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint_multi_colors/static/js/multi_colors.js b/octoprint_multi_colors/static/js/multi_colors.js index 2aaed22..181bce5 100644 --- a/octoprint_multi_colors/static/js/multi_colors.js +++ b/octoprint_multi_colors/static/js/multi_colors.js @@ -44,9 +44,9 @@ $(function() { if ( self.printer.sd() ) { self.message(self.NO_SD); } else { - self._sendData({"command":"settings"}, function(data){ self.gcode(data.gcode); self.find_string(data.find_string)}); self._update(self.printer.filename()); } + self._sendData({"command":"settings"}, function(data){ self.gcode(data.gcode); self.find_string(data.find_string)}); } }