diff --git a/src/octoprint/plugins/corewizard/static/js/corewizard.js b/src/octoprint/plugins/corewizard/static/js/corewizard.js index 19a2c32d..1c37e266 100644 --- a/src/octoprint/plugins/corewizard/static/js/corewizard.js +++ b/src/octoprint/plugins/corewizard/static/js/corewizard.js @@ -71,7 +71,7 @@ $(function() { }); }; - self.onWizardTabChange = function(current, next) { + self.onBeforeWizardTabChange = function(next, current) { if (!current || !_.startsWith(current, "wizard_plugin_corewizard_acl_") || self.setup()) { return true; } diff --git a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js index 4be6240f..bcac211e 100644 --- a/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js +++ b/src/octoprint/plugins/softwareupdate/static/js/softwareupdate.js @@ -488,7 +488,7 @@ $(function() { self.workingOutput.scrollTop(self.workingOutput[0].scrollHeight - self.workingOutput.height()); }; - self.onWizardTabChange = function(current, next) { + self.onBeforeWizardTabChange = function(next, current) { if (next && _.startsWith(next, "wizard_plugin_softwareupdate")) { // switching to the plugin wizard tab self._copyConfig();