kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
Fix handling of Tool Off Button
rodzic
3e56de09d7
commit
cd1e836214
|
@ -233,7 +233,7 @@
|
|||
</div>
|
||||
|
||||
<div>
|
||||
<button id="toolBtn" class="ribbon-button dropdown-toggle">
|
||||
<button id="toolBtn2" class="ribbon-button dropdown-toggle">
|
||||
<span class="icon">
|
||||
<span class="fa-layers fa-fw">
|
||||
<i class="fas fa-bookmark" data-fa-transform="rotate-180"></i>
|
||||
|
|
|
@ -94,6 +94,7 @@ function setControlBar(val, status) {
|
|||
$('#pauseBtn').hide().attr('disabled', true);
|
||||
$('#stopBtn').hide().attr('disabled', true);
|
||||
$('#toolBtn').hide().attr('disabled', true);
|
||||
$('#toolBtn2').hide().attr('disabled', true);
|
||||
$('#homeBtn').hide().attr('disabled', true);
|
||||
$('.estop').hide()
|
||||
} else if (val == 1 || val == 2) { // Connected, but not Playing yet
|
||||
|
@ -107,6 +108,7 @@ function setControlBar(val, status) {
|
|||
$('#pauseBtn').hide().attr('disabled', true);
|
||||
$('#stopBtn').show().attr('disabled', true);
|
||||
$('#toolBtn').show().attr('disabled', false);
|
||||
$('#toolBtn2').show().attr('disabled', false);
|
||||
$('#homeBtn').show().attr('disabled', false);
|
||||
$('.estop').show()
|
||||
} else if (val == 3) { // Busy Streaming GCODE
|
||||
|
@ -116,6 +118,7 @@ function setControlBar(val, status) {
|
|||
$('#pauseBtn').show().attr('disabled', false);
|
||||
$('#stopBtn').show().attr('disabled', false);
|
||||
$('#toolBtn').show().attr('disabled', false);
|
||||
$('#toolBtn2').show().attr('disabled', false);
|
||||
$('#homeBtn').show().attr('disabled', true);
|
||||
$('.estop').show()
|
||||
} else if (val == 4) { // Paused
|
||||
|
@ -125,6 +128,7 @@ function setControlBar(val, status) {
|
|||
$('#pauseBtn').hide().attr('disabled', true);
|
||||
$('#stopBtn').show().attr('disabled', false);
|
||||
$('#toolBtn').show().attr('disabled', false);
|
||||
$('#toolBtn2').show().attr('disabled', false);
|
||||
$('#homeBtn').show().attr('disabled', true);
|
||||
$('.estop').show()
|
||||
} else if (val == 5) { // Alarm State
|
||||
|
@ -134,6 +138,7 @@ function setControlBar(val, status) {
|
|||
$('#pauseBtn').hide().attr('disabled', true);
|
||||
$('#stopBtn').show().attr('disabled', false);
|
||||
$('#toolBtn').show().attr('disabled', true);
|
||||
$('#toolBtn2').show().attr('disabled', true);
|
||||
$('#homeBtn').show().attr('disabled', true);
|
||||
$('.estop').show()
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "OpenBuildsCONTROL",
|
||||
"version": "1.0.118",
|
||||
"version": "1.0.119",
|
||||
"license": "AGPL-3.0",
|
||||
"description": "Machine Interface Driver for OpenBuilds",
|
||||
"author": "github.com/openbuilds <webmaster@openbuilds.com>",
|
||||
|
|
Ładowanie…
Reference in New Issue