Fix switching to the tab with a navbar click (#24)

Fix switching to the plugin tab with a navbar click broken
This commit is contained in:
Master92 2021-01-06 04:57:49 +01:00 committed by GitHub
parent 728dfef0c8
commit f5d533865d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -81,7 +81,11 @@ $(function() {
});
}
}
self.navbarClicked = function() {
$("#tab_plugin_klipper_main_link").find("a").click();
}
self.onGetStatus = function() {
OctoPrint.control.sendGcode("Status")
}

View File

@ -1 +1 @@
<a href="#tab_plugin_klipper_main" data-bind="text: shortStatus"></a>
<a data-bind="text: shortStatus, click: navbarClicked"></a>