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:
parent
728dfef0c8
commit
f5d533865d
|
@ -81,7 +81,11 @@ $(function() {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
self.navbarClicked = function() {
|
||||
$("#tab_plugin_klipper_main_link").find("a").click();
|
||||
}
|
||||
|
||||
self.onGetStatus = function() {
|
||||
OctoPrint.control.sendGcode("Status")
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
<a href="#tab_plugin_klipper_main" data-bind="text: shortStatus"></a>
|
||||
<a data-bind="text: shortStatus, click: navbarClicked"></a>
|
||||
|
|
Loading…
Reference in New Issue