1 |
commit: 9a58ea8981c092477428d130301ca9dd5ee0082b |
2 |
Author: Liam McLoughlin <hexxeh <AT> hexxeh <DOT> net> |
3 |
AuthorDate: Wed Jul 27 22:02:24 2011 +0000 |
4 |
Commit: Liam McLoughlin <hexxeh <AT> hexxeh <DOT> net> |
5 |
CommitDate: Wed Jul 27 22:11:52 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoaster.git;a=commit;h=9a58ea89 |
7 |
|
8 |
Fix broken VNC client JS |
9 |
|
10 |
--- |
11 |
web/testdrive.php | 10 ++++++---- |
12 |
1 files changed, 6 insertions(+), 4 deletions(-) |
13 |
|
14 |
diff --git a/web/testdrive.php b/web/testdrive.php |
15 |
index 7610811..6d087a9 100644 |
16 |
--- a/web/testdrive.php |
17 |
+++ b/web/testdrive.php |
18 |
@@ -125,7 +125,7 @@ |
19 |
return false; |
20 |
} |
21 |
function updateState(rfb, state, oldstate, msg) { |
22 |
- var s, sb, cad, level; |
23 |
+ var s, sb, cad, level, attr; |
24 |
s = $D('VNC_status'); |
25 |
sb = $D('VNC_status_bar'); |
26 |
cad = $D('sendCtrlAltDelButton'); |
27 |
@@ -172,15 +172,17 @@ |
28 |
port = <?php echo $server[1]; ?>; |
29 |
password = ""; |
30 |
|
31 |
- gqv = WebUtil.getQueryVar; |
32 |
+ function gqv(a,b) { |
33 |
+ return WebUtil.getQueryVar(a,b); |
34 |
+ } |
35 |
|
36 |
rfb = new RFB({'target':$D('VNC_canvas'), |
37 |
'encrypt': gqv('encrypt',false), |
38 |
'true_color': gqv('true_color',true), |
39 |
'local_cursor': gqv('cursor',true), |
40 |
'shared': gqv('shared',true), |
41 |
- 'updateState': updateState, |
42 |
- rfb.connect(host, port, password); |
43 |
+ 'updateState': updateState}); |
44 |
+ |
45 |
}; |
46 |
|
47 |
setTimeout("connect()", 2000); |