Keep the connect panel when missing host or port
This commit is contained in:
parent
74a4a2b468
commit
4102b71c33
|
@ -929,8 +929,6 @@ var UI;
|
||||||
},
|
},
|
||||||
|
|
||||||
connect: function() {
|
connect: function() {
|
||||||
UI.closeAllPanels();
|
|
||||||
|
|
||||||
var host = document.getElementById('noVNC_setting_host').value;
|
var host = document.getElementById('noVNC_setting_host').value;
|
||||||
var port = document.getElementById('noVNC_setting_port').value;
|
var port = document.getElementById('noVNC_setting_port').value;
|
||||||
var password = document.getElementById('noVNC_setting_password').value;
|
var password = document.getElementById('noVNC_setting_password').value;
|
||||||
|
@ -949,6 +947,8 @@ var UI;
|
||||||
|
|
||||||
if (!UI.initRFB()) return;
|
if (!UI.initRFB()) return;
|
||||||
|
|
||||||
|
UI.closeAllPanels();
|
||||||
|
|
||||||
UI.rfb.set_encrypt(UI.getSetting('encrypt'));
|
UI.rfb.set_encrypt(UI.getSetting('encrypt'));
|
||||||
UI.rfb.set_true_color(UI.getSetting('true_color'));
|
UI.rfb.set_true_color(UI.getSetting('true_color'));
|
||||||
UI.rfb.set_local_cursor(UI.getSetting('cursor'));
|
UI.rfb.set_local_cursor(UI.getSetting('cursor'));
|
||||||
|
|
Loading…
Reference in New Issue