Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2420)

Unified Diff: remoting/webapp/me2mom/choice.html

Issue 7583018: Add beforeUnload handler to confirm exit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed variable name. Fixed JSDoc syntax. Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/webapp/me2mom/_locales/en/messages.json ('k') | remoting/webapp/me2mom/remoting.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/me2mom/choice.html
diff --git a/remoting/webapp/me2mom/choice.html b/remoting/webapp/me2mom/choice.html
index c71f800b6049e8902b2a4e6c655e3cd97c34e8b9..1b0cdef543471b35080a3e42157f00e94edf6009 100644
--- a/remoting/webapp/me2mom/choice.html
+++ b/remoting/webapp/me2mom/choice.html
@@ -25,7 +25,8 @@ found in the LICENSE file.
<title i18n-content="pageTitle"></title>
</head>
- <body onLoad="remoting.init();"
+ <body onBeforeUnload="return remoting.promptClose();"
+ onLoad="remoting.init();"
onUnload="remoting.disconnect();">
<!-- loading-mode is initially visible, but becomes hidden as soon as an
« no previous file with comments | « remoting/webapp/me2mom/_locales/en/messages.json ('k') | remoting/webapp/me2mom/remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698