diff options
author | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-17 02:16:16 +0000 |
---|---|---|
committer | jamiewalch@google.com <jamiewalch@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-17 02:16:16 +0000 |
commit | edc1f447ca544d88418a565a125e515ab1c598d3 (patch) | |
tree | c9cc90e0e0a6e852e197cfbcb9f76bdf9cbbbe2e /remoting | |
parent | 6206e70648d3e9968f4d28486a2e0526dc252c8d (diff) | |
download | chromium_src-edc1f447ca544d88418a565a125e515ab1c598d3.zip chromium_src-edc1f447ca544d88418a565a125e515ab1c598d3.tar.gz chromium_src-edc1f447ca544d88418a565a125e515ab1c598d3.tar.bz2 |
Open Me2Me hosts in the same tab.
BUG=107886
TEST=Manual
Review URL: http://codereview.chromium.org/8985005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/webapp/me2mom/host_table_entry.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/webapp/me2mom/host_table_entry.js b/remoting/webapp/me2mom/host_table_entry.js index 69efdc4..62a4613 100644 --- a/remoting/webapp/me2mom/host_table_entry.js +++ b/remoting/webapp/me2mom/host_table_entry.js @@ -89,8 +89,8 @@ remoting.HostTableEntry.prototype.init = function(host, onRename, onDelete) { var connectButton = document.createElement('button'); connectButton.setAttribute('class', 'mode-select-button'); connectButton.setAttribute('type', 'button'); - connectButton.setAttribute('onclick', - 'window.open("' + hostUrl + '", "_blank");'); + var startMe2Me = function() { window.location.replace(hostUrl); }; + connectButton.addEventListener('click', startMe2Me, false); connectButton.innerHTML = chrome.i18n.getMessage(/*i18n-content*/'CONNECT_BUTTON'); hostStatus.appendChild(connectButton); |