summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/event_handlers.js
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/webapp/event_handlers.js')
-rw-r--r--remoting/webapp/event_handlers.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/remoting/webapp/event_handlers.js b/remoting/webapp/event_handlers.js
index f3a8c24..5dfc368 100644
--- a/remoting/webapp/event_handlers.js
+++ b/remoting/webapp/event_handlers.js
@@ -22,7 +22,7 @@ function onLoad() {
},
remoting.showErrorMessage);
};
- var goFinishedIt2Me = function() {
+ var goFinishedIT2Me = function() {
if (remoting.currentMode == remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME) {
remoting.setMode(remoting.AppMode.CLIENT_UNCONNECTED);
} else {
@@ -34,12 +34,7 @@ function onLoad() {
};
/** @param {Event} event The event. */
var sendAccessCode = function(event) {
- remoting.connectIt2Me();
- event.preventDefault();
- };
- /** @param {Event} event The event. */
- var connectHostWithPin = function(event) {
- remoting.connectMe2MeWithPin();
+ remoting.connectIT2Me();
event.preventDefault();
};
var doAuthRedirect = function() {
@@ -69,7 +64,7 @@ function onLoad() {
{ event: 'click', id: 'stop-sharing-button', fn: remoting.cancelShare },
{ event: 'click', id: 'host-finished-button', fn: restartWebapp },
{ event: 'click', id: 'client-finished-it2me-button',
- fn: goFinishedIt2Me },
+ fn: goFinishedIT2Me },
{ event: 'click', id: 'client-finished-me2me-button', fn: restartWebapp },
{ event: 'click', id: 'cancel-pin-entry-button', fn: restartWebapp },
{ event: 'click', id: 'client-reconnect-button', fn: reload },
@@ -83,9 +78,8 @@ function onLoad() {
fn: function() { remoting.hostSetupDialog.showForPin(); } },
{ event: 'click', id: 'stop-daemon', fn: stopDaemon },
{ event: 'submit', id: 'access-code-form', fn: sendAccessCode },
- { event: 'submit', id: 'pin-form', fn: connectHostWithPin },
{ event: 'click', id: 'get-started-it2me',
- fn: remoting.showIt2MeUiAndSave },
+ fn: remoting.showIT2MeUiAndSave },
{ event: 'click', id: 'get-started-me2me',
fn: remoting.showMe2MeUiAndSave },
{ event: 'click', id: 'daemon-pin-cancel',