switch off focus after 30 seconds

This commit is contained in:
Teja 2015-02-14 19:07:17 +01:00
parent a9fd363f45
commit 42fc268449

View file

@ -142,6 +142,9 @@ function ControlViewModel(loginStateViewModel, settingsViewModel, printerStateVi
e.preventDefault();
$("#confirmation_dialog").modal("hide");
self.sendCustomCommand({type:'commands', commands:['M8', 'M3S7']});
setTimeout(function(){ // switch focus off after 30 seconds for safety reasons.
self.focus_off();
}, 30000);
});
$("#confirmation_dialog").modal("show");
};