| Index: remoting/webapp/client_screen.js
|
| diff --git a/remoting/webapp/client_screen.js b/remoting/webapp/client_screen.js
|
| index 0b3b098b27fab7866f6275197a2d555b9b24b893..37c7b65245d3f67c0588572462a4aa170ceb74ab 100644
|
| --- a/remoting/webapp/client_screen.js
|
| +++ b/remoting/webapp/client_screen.js
|
| @@ -196,6 +196,7 @@ function onClientStateChange_(oldState, newState) {
|
| } else if (newState == remoting.ClientSession.State.CONNECTED) {
|
| if (remoting.clientSession) {
|
| clearPin = true;
|
| + setConnectionInterruptedButtonsText_();
|
| remoting.setMode(remoting.AppMode.IN_SESSION);
|
| remoting.toolbar.center();
|
| remoting.toolbar.preview();
|
| @@ -330,6 +331,20 @@ function showConnectError_(errorTag) {
|
| }
|
|
|
| /**
|
| + * Set the text on the buttons shown under the error message so that they are
|
| + * easy to understand in the case where a successful connection failed, as
|
| + * opposed to the case where a connection never succeeded.
|
| + */
|
| +function setConnectionInterruptedButtonsText_() {
|
| + var button1 = document.getElementById('client-reconnect-button');
|
| + l10n.localizeElementFromTag(button1, /*i18n-content*/'RECONNECT');
|
| + button1.removeAttribute('autofocus');
|
| + var button2 = document.getElementById('client-finished-me2me-button');
|
| + l10n.localizeElementFromTag(button2, /*i18n-content*/'OK');
|
| + button2.setAttribute('autofocus', 'autofocus');
|
| +}
|
| +
|
| +/**
|
| * Parse the response from the server to a request to resolve a support id.
|
| *
|
| * @param {XMLHttpRequest} xhr The XMLHttpRequest object.
|
|
|