diff --git a/GPX b/GPX index 441df1e..5157d37 160000 --- a/GPX +++ b/GPX @@ -1 +1 @@ -Subproject commit 441df1e6191892b494705f37b907e7dec906dd0b +Subproject commit 5157d37fa06cdb6bde17cdfa883b9981ae079e99 diff --git a/octoprint_GPX/static/js/gpx.js b/octoprint_GPX/static/js/gpx.js index b781158..b944fa4 100644 --- a/octoprint_GPX/static/js/gpx.js +++ b/octoprint_GPX/static/js/gpx.js @@ -71,7 +71,8 @@ $(function() { }; self.onAfterBinding = function() { - $('[data-toggle=tooltip]').tooltip({placement: 'left'}); + $('#gpx_settings').find('[data-toggle=tooltip]').tooltip({placement: 'left'}); + $('#gpx_machine_settings').find('[data-toggle=tooltip]').tooltip(); }; self.onSettingsShown = self.requestData; @@ -113,8 +114,9 @@ $(function() { self.machine = ko.mapping.fromJS(machineInitial); - $("#gpx_machine_settings").on("show", function() { - self.requestMachine(); + $("#gpx_machine_settings").on("show", function(event) { + if (event.target.id == "gpx_machine_settings") + self.requestMachine(); }); self.requestMachine = function() { diff --git a/octoprint_GPX/templates/GPX_settings.jinja2 b/octoprint_GPX/templates/GPX_settings.jinja2 index 0e30372..62ed31c 100644 --- a/octoprint_GPX/templates/GPX_settings.jinja2 +++ b/octoprint_GPX/templates/GPX_settings.jinja2 @@ -145,24 +145,32 @@ X Y Z + A + B {{ _('Max Feedrate:') }} + + - + {{ _('Home Feedrate:') }} + N/A + N/A {{ _('Steps per mm:') }} + + {{ _('Home:') }} @@ -181,6 +189,8 @@ + N/A + N/A