|
@@ -17,6 +17,7 @@ Connect parameters are provided in query string:
|
|
|
<td><div id="VNC_status">Loading</div></td>
|
|
|
<td width=10%><div id="VNC_buttons">
|
|
|
<input type=button value="Send CtrlAltDel"
|
|
|
+ id="sendCtrlAltDelButton"
|
|
|
onclick="sendCtrlAltDel();"></div></td>
|
|
|
</tr></table>
|
|
|
</div>
|
|
@@ -39,13 +40,17 @@ Connect parameters are provided in query string:
|
|
|
var s, sb, klass, html;
|
|
|
s = $('VNC_status');
|
|
|
sb = $('VNC_status_bar');
|
|
|
+ cad = $('sendCtrlAltDelButton');
|
|
|
switch (state) {
|
|
|
- case 'failed': klass = "VNC_status_error"; break;
|
|
|
+ case 'failed': klass = "VNC_status_error"; break;
|
|
|
case 'normal': klass = "VNC_status_normal"; break;
|
|
|
case 'disconnected': klass = "VNC_status_normal"; break;
|
|
|
- default: klass = "VNC_status_warn"; break;
|
|
|
+ default: klass = "VNC_status_warn"; break;
|
|
|
}
|
|
|
|
|
|
+ if (state === "normal") { cad.disabled = false; }
|
|
|
+ else { cad.disabled = true; }
|
|
|
+
|
|
|
if (typeof(msg) !== 'undefined') {
|
|
|
sb.setAttribute("class", klass);
|
|
|
s.innerHTML = msg;
|