mirror of http://git.sublab.org/cctv-control/
print button closes form
This commit is contained in:
parent
70506cc35a
commit
7e5443f922
2
cam.html
2
cam.html
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
</textarea>
|
</textarea>
|
||||||
<p>
|
<p>
|
||||||
<a href="#" id='printButton'> </a>
|
<a href="#" id='printButton' onclick='printForm()'> </a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
//
|
//
|
||||||
// This Software is licensed under the GPL Version 3, 29 June 2007
|
// This Software is licensed under the GPL Version 3, 29 June 2007
|
||||||
|
|
||||||
|
|
||||||
var cam = 0;
|
var cam = 0;
|
||||||
var camHost = "127.0.0.1:8080";
|
var camHost = "127.0.0.1:8080";
|
||||||
var controlHost = "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
|
//change from testbild to default cam when DOM is ready
|
||||||
window.onDomReady(initViewer);
|
window.onDomReady(initViewer);
|
||||||
|
|
||||||
|
|
||||||
function initReady(fn) {
|
function initReady(fn) {
|
||||||
if(document.addEventListener) {
|
if(document.addEventListener) {
|
||||||
document.addEventListener("DOMContentLoaded", fn, false);
|
document.addEventListener("DOMContentLoaded", fn, false);
|
||||||
|
@ -122,6 +122,7 @@ function showImage() {
|
||||||
function printForm() {
|
function printForm() {
|
||||||
document.getElementById("form").style.visibility = 'hidden';
|
document.getElementById("form").style.visibility = 'hidden';
|
||||||
formActive = false;
|
formActive = false;
|
||||||
|
changeCam();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue