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

Unified Diff: chrome/browser/sync/resources/gaia_login.html

Issue 287008: Disable form entry while sending credentials.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/resources/gaia_login.html
===================================================================
--- chrome/browser/sync/resources/gaia_login.html (revision 29232)
+++ chrome/browser/sync/resources/gaia_login.html (working copy)
@@ -123,7 +123,10 @@
function sendCredentialsAndClose() {
if (!setErrorVisibility())
return false;
-
+
+ document.getElementById('Email').disabled = true;
+ document.getElementById('Passwd').disabled = true;
+
var throbber = document.getElementById('throbber_container');
throbber.style.display = "inline";
var f = document.getElementById("gaia_loginform");
@@ -142,6 +145,8 @@
function setBlurbError() {
document.getElementById("top_blurb").style.display = "none";
document.getElementById("top_blurb_error").style.display = "block";
+ document.getElementById('Email').disabled = false;
+ document.getElementById('Passwd').disabled = false;
}
function resetErrorVisibility() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698