diff options
author | Florian <stayawake@lavabit.com> | 2014-02-14 19:45:17 +0100 |
---|---|---|
committer | Florian <stayawake@lavabit.com> | 2014-02-14 19:45:17 +0100 |
commit | 7e5443f9221ba6526522a0e04a4f1a6b1d6c2554 (patch) | |
tree | 1a3d8895d6ea20d884fc2189eab2c4200c3aed7d /js | |
parent | 70506cc35a86b9f18e5076ec5137c1d22ee77f76 (diff) |
print button closes form
Diffstat (limited to 'js')
-rw-r--r-- | js/cctv-control.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/cctv-control.js b/js/cctv-control.js index 0dfd1d0..40a7bf4 100644 --- a/js/cctv-control.js +++ b/js/cctv-control.js @@ -11,7 +11,6 @@ // // This Software is licensed under the GPL Version 3, 29 June 2007 - var cam = 0; var camHost = "127.0.0.1:8080"; var controlHost = "127.0.0.1:8080"; @@ -23,6 +22,7 @@ window.onDomReady = initReady; //change from testbild to default cam when DOM is ready window.onDomReady(initViewer); + function initReady(fn) { if(document.addEventListener) { document.addEventListener("DOMContentLoaded", fn, false); @@ -122,6 +122,7 @@ function showImage() { function printForm() { document.getElementById("form").style.visibility = 'hidden'; formActive = false; + changeCam(); } |