diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/cctv-control.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/cctv-control.js b/js/cctv-control.js index 9f71276..b4e6fa7 100644 --- a/js/cctv-control.js +++ b/js/cctv-control.js @@ -153,7 +153,9 @@ function hideForm() { localStorage.setItem("formAnalysis2", document.getElementById('formAnalysis2').value); localStorage.setItem("formAnalysis3", document.getElementById('formAnalysis3').value); - //hide form + //hide form and unfocus button + //otherwise next enter press will trigger print-function + document.getElementById('printButton').blur(); window.open('print.html', 'Printlayout'); document.getElementById("form").style.visibility = 'hidden'; formActive = 0; |