};
},
+setPassword: function() {
+ console.log("setPassword");
+ RFB.sendPassword($('VNC_password').value);
+ return false;
+},
+
sendCtrlAltDel: function() {
RFB.sendCtrlAltDel();
},
cad = $('sendCtrlAltDelButton');
switch (state) {
case 'failed':
+ case 'fatal':
c.disabled = true;
cad.disabled = true;
klass = "VNC_status_error";
klass = "VNC_status_normal";
break;
case 'disconnected':
+ case 'loaded':
c.value = "Connect";
c.onclick = DefaultControls.connect;
cad.disabled = true;
klass = "VNC_status_normal";
break;
+ case 'password':
+ c.value = "Send Password";
+ c.onclick = DefaultControls.setPassword;
+
+ c.disabled = false;
+ cad.disabled = true;
+ klass = "VNC_status_warn";
+ break;
default:
c.disabled = true;
cad.disabled = true;