Keep connect Btn disabled until we have Portlist

pull/110/head
openbuilds-engineer 2018-06-25 23:08:34 +02:00
rodzic 08735d897d
commit 22e3be02d7
3 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -181,7 +181,7 @@ function grblSaveSettings() {
function refreshGrblSettings() {
grblParams = {};
$('#grblconfig').empty();
$('#grblconfig').append("<center>Please Wait... </center><br><div data-role='countdown' data-seconds='3'></div>");
$('#grblconfig').append("<center>Please Wait... </center><br><div data-role='countdown' data-seconds='3'></div><br> Requesting updated parameters from the controller firmware...");
setTimeout(function() {
sendGcode('$$');
setTimeout(function() {

Wyświetl plik

@ -149,7 +149,11 @@ function initSocket() {
// $("#portUSB").val(status.comms.interfaces.activePort);
$('#connectStatus').html("Port: Not Connected");
$("#disconnectBtn").hide();
$("#connectBtn").attr('disabled', false);
if ($('#portUSB option').length > 0 && $('#portUSB').val() != "") {
$("#connectBtn").attr('disabled', false);
} else {
$("#connectBtn").attr('disabled', true);
}
$(".grblmode").attr('disabled', true);
$("#playpauseresumelabel").html("Run<br>Job")
$("#playpauseresumeicon").html("<i class='fas fa-play'></i>")

Wyświetl plik

@ -1,6 +1,6 @@
{
"name": "OpenBuildsMachineDriver",
"version": "1.0.7",
"version": "1.0.8",
"license": "AGPL-3.0",
"description": "Machine Interface Driver for OpenBuilds",
"author": "github.com/openbuilds",