diff options
author | 2011-07-27 23:02:24 +0100 | |
---|---|---|
committer | 2011-07-27 23:12:57 +0100 | |
commit | 0f5558d334f95339b621d5357a2b01d1cde97897 (patch) | |
tree | 48d64355f8bcfe1581ee39e00d9907205312abcc | |
parent | Remove stay database close method call (diff) | |
download | gentoaster-0f5558d334f95339b621d5357a2b01d1cde97897.tar.gz gentoaster-0f5558d334f95339b621d5357a2b01d1cde97897.tar.bz2 gentoaster-0f5558d334f95339b621d5357a2b01d1cde97897.zip |
Fix broken VNC client JS
-rw-r--r-- | web/testdrive.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/web/testdrive.php b/web/testdrive.php index 7610811..a141af5 100644 --- a/web/testdrive.php +++ b/web/testdrive.php @@ -125,7 +125,7 @@ return false; } function updateState(rfb, state, oldstate, msg) { - var s, sb, cad, level; + var s, sb, cad, level, attr; s = $D('VNC_status'); sb = $D('VNC_status_bar'); cad = $D('sendCtrlAltDelButton'); @@ -172,15 +172,19 @@ port = <?php echo $server[1]; ?>; password = ""; - gqv = WebUtil.getQueryVar; + function gqv(a,b) { + return WebUtil.getQueryVar(a,b); + } rfb = new RFB({'target':$D('VNC_canvas'), 'encrypt': gqv('encrypt',false), 'true_color': gqv('true_color',true), 'local_cursor': gqv('cursor',true), 'shared': gqv('shared',true), - 'updateState': updateState, + 'updateState': updateState}); + rfb.connect(host, port, password); + }; setTimeout("connect()", 2000); |