mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
Fix namespace.
This commit is contained in:
@@ -598,26 +598,26 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
|
|
||||||
// Idle
|
// Idle
|
||||||
case 0:
|
case 0:
|
||||||
showStatus("Idle.");
|
GuacUI.Client.showStatus("Idle.");
|
||||||
title_prefix = "[Idle]";
|
title_prefix = "[Idle]";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Connecting
|
// Connecting
|
||||||
case 1:
|
case 1:
|
||||||
showStatus("Connecting...");
|
GuacUI.Client.showStatus("Connecting...");
|
||||||
title_prefix = "[Connecting...]";
|
title_prefix = "[Connecting...]";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Connected + waiting
|
// Connected + waiting
|
||||||
case 2:
|
case 2:
|
||||||
showStatus("Connected, waiting for first update...");
|
GuacUI.Client.showStatus("Connected, waiting for first update...");
|
||||||
title_prefix = "[Waiting...]";
|
title_prefix = "[Waiting...]";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Connected
|
// Connected
|
||||||
case 3:
|
case 3:
|
||||||
|
|
||||||
hideStatus();
|
GuacUI.Client.hideStatus();
|
||||||
title_prefix = null;
|
title_prefix = null;
|
||||||
|
|
||||||
// Update clipboard with current data
|
// Update clipboard with current data
|
||||||
@@ -628,19 +628,19 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
|
|
||||||
// Disconnecting
|
// Disconnecting
|
||||||
case 4:
|
case 4:
|
||||||
showStatus("Disconnecting...");
|
GuacUI.Client.showStatus("Disconnecting...");
|
||||||
title_prefix = "[Disconnecting...]";
|
title_prefix = "[Disconnecting...]";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Disconnected
|
// Disconnected
|
||||||
case 5:
|
case 5:
|
||||||
showStatus("Disconnected.");
|
GuacUI.Client.showStatus("Disconnected.");
|
||||||
title_prefix = "[Disconnected]";
|
title_prefix = "[Disconnected]";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Unknown status code
|
// Unknown status code
|
||||||
default:
|
default:
|
||||||
showStatus("[UNKNOWN STATUS]");
|
GuacUI.Client.showStatus("[UNKNOWN STATUS]");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -667,7 +667,7 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
guac.disconnect();
|
guac.disconnect();
|
||||||
|
|
||||||
// Display error message
|
// Display error message
|
||||||
showError(error);
|
GuacUI.Client.showError(error);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -794,7 +794,8 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
window.onblur = function() {
|
window.onblur = function() {
|
||||||
|
|
||||||
// Regularly update screenshot if window not visible
|
// Regularly update screenshot if window not visible
|
||||||
thumbnail_update_interval = window.setInterval(updateThumbnail, 1000);
|
thumbnail_update_interval =
|
||||||
|
window.setInterval(GuacUI.Client.updateThumbnail, 1000);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -807,7 +808,7 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
*/
|
*/
|
||||||
window.onunload = function() {
|
window.onunload = function() {
|
||||||
|
|
||||||
updateThumbnail();
|
GuacUI.Client.updateThumbnail();
|
||||||
guac.disconnect();
|
guac.disconnect();
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -818,7 +819,7 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
window.onresize = function() {
|
window.onresize = function() {
|
||||||
|
|
||||||
guac.sendSize(window.innerWidth, window.innerHeight);
|
guac.sendSize(window.innerWidth, window.innerHeight);
|
||||||
updateDisplayScale();
|
GuacUI.Client.updateDisplayScale();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -826,7 +827,7 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
if (name == "clipboard")
|
if (name == "clipboard")
|
||||||
guac.setClipboard(new_state[name]);
|
guac.setClipboard(new_state[name]);
|
||||||
else if (name == "auto-fit")
|
else if (name == "auto-fit")
|
||||||
updateDisplayScale();
|
GuacUI.Client.updateDisplayScale();
|
||||||
};
|
};
|
||||||
|
|
||||||
var long_press_start_x = 0;
|
var long_press_start_x = 0;
|
||||||
|
Reference in New Issue
Block a user