Show correct tab on gcode upload

pull/110/head
openbuilds-engineer 2018-07-24 20:11:56 +02:00
rodzic cfc9b02d74
commit 3edcaf3413
4 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -31,7 +31,7 @@
<ul class="tabs-holder">
<li><a href="#section-one" onclick="connectionPanel();">Connection</a></li>
<li id="grblSettings" style="display: none;"><a href="#section-grbl" onclick="grblPanel();">Grbl Settings</a></li>
<li><a href="#section-two" onclick="manualcontrolPanel();">Control</a></li>
<li><a id="controlTab" href="#section-two" onclick="manualcontrolPanel();">Control</a></li>
<li><a href="#section-update" onclick="updatePanel();">Update</a></li>
</ul>
<div class="content-holder">

Wyświetl plik

@ -80,9 +80,9 @@ function initSocket() {
socket.on('gcodeupload', function(data) {
printLog("Received new GCODE from API")
editor.session.setValue(data);
$('#controlTab').click()
});

Wyświetl plik

@ -822,7 +822,7 @@ io.on("connection", function(socket) {
machineSend("?");
}
}
}, 1000);
}, 250);
} else if (data.indexOf("LPC176") >= 0) { // LPC1768 or LPC1769 should be Smoothieware
status.comms.blocked = false;
console.log("Smoothieware detected");

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "OpenBuildsMachineDriver",
"version": "1.0.29",
"version": "1.0.30",
"license": "AGPL-3.0",
"description": "Machine Interface Driver for OpenBuilds",
"author": "github.com/openbuilds <webmaster@openbuilds.com>",