parent
5b8126ae17
commit
1b4a7c7896
1 changed files with 11 additions and 0 deletions
|
|
@ -51,6 +51,17 @@ $(function() {
|
||||||
terminalViewModel.updateOutput();
|
terminalViewModel.updateOutput();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#tabs a[data-toggle="tab"]').on('show', function (e) {
|
||||||
|
var current = e.target;
|
||||||
|
var previous = e.relatedTarget;
|
||||||
|
|
||||||
|
if (current.hash == "#control") {
|
||||||
|
$("#webcam_image").attr("src", CONFIG_WEBCAM_STREAM + "?" + new Date().getTime());
|
||||||
|
} else if (previous.hash == "#control") {
|
||||||
|
$("#webcam_image").attr("src", "#");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
//~~ Gcode upload
|
//~~ Gcode upload
|
||||||
|
|
||||||
function gcode_upload_done(e, data) {
|
function gcode_upload_done(e, data) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue