From 010549c41168b6f3d47f236c647c6246e3c809a6 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 16 Feb 2014 00:58:49 +0100 Subject: bugfix: enter triggers hide form, after form display due to focus --- cam.html | 2 +- js/cctv-control.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cam.html b/cam.html index fd466e7..4fec98b 100644 --- a/cam.html +++ b/cam.html @@ -5,7 +5,7 @@ - +
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; -- cgit v1.2.1