OLD | NEW |
1 <html i18n-values="dir:textdirection;"> | 1 <html i18n-values="dir:textdirection;"> |
2 <style type="text/css"><!-- | 2 <style type="text/css"><!-- |
3 body,td,div,p,a,font,span {font-family: arial,sans-serif;} | 3 body,td,div,p,a,font,span {font-family: arial,sans-serif;} |
4 body { bgcolor:"#ffffff" } | 4 body { bgcolor:"#ffffff" } |
5 A:link {color:#0000cc; } | 5 A:link {color:#0000cc; } |
6 A:visited { color:#551a8b; } | 6 A:visited { color:#551a8b; } |
7 A:active { color:#ff0000; } | 7 A:active { color:#ff0000; } |
8 .form-noindent {background-color: #ffffff; border: #C3D9FF 1px solid} | 8 .form-noindent {background-color: #ffffff; border: #C3D9FF 1px solid} |
9 --></style> | 9 --></style> |
10 <head> | 10 <head> |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 acct_text.textContent = translated_text.replace('Google',''); | 116 acct_text.textContent = translated_text.replace('Google',''); |
117 } | 117 } |
118 setInterval(advanceThrobber, 30); | 118 setInterval(advanceThrobber, 30); |
119 var args = JSON.parse(chrome.dialogArguments); | 119 var args = JSON.parse(chrome.dialogArguments); |
120 showGaiaLogin(args); | 120 showGaiaLogin(args); |
121 } | 121 } |
122 | 122 |
123 function sendCredentialsAndClose() { | 123 function sendCredentialsAndClose() { |
124 if (!setErrorVisibility()) | 124 if (!setErrorVisibility()) |
125 return false; | 125 return false; |
126 | 126 |
| 127 document.getElementById('Email').disabled = true; |
| 128 document.getElementById('Passwd').disabled = true; |
| 129 |
127 var throbber = document.getElementById('throbber_container'); | 130 var throbber = document.getElementById('throbber_container'); |
128 throbber.style.display = "inline"; | 131 throbber.style.display = "inline"; |
129 var f = document.getElementById("gaia_loginform"); | 132 var f = document.getElementById("gaia_loginform"); |
130 var result = JSON.stringify({"user" : f.Email.value, | 133 var result = JSON.stringify({"user" : f.Email.value, |
131 "pass" : f.Passwd.value}); | 134 "pass" : f.Passwd.value}); |
132 document.getElementById("signIn").disabled = true; | 135 document.getElementById("signIn").disabled = true; |
133 chrome.send("SubmitAuth", [result]); | 136 chrome.send("SubmitAuth", [result]); |
134 } | 137 } |
135 | 138 |
136 function setElementDisplay(id, display) { | 139 function setElementDisplay(id, display) { |
137 var d = document.getElementById(id); | 140 var d = document.getElementById(id); |
138 if (d) | 141 if (d) |
139 d.style.display = display; | 142 d.style.display = display; |
140 } | 143 } |
141 | 144 |
142 function setBlurbError() { | 145 function setBlurbError() { |
143 document.getElementById("top_blurb").style.display = "none"; | 146 document.getElementById("top_blurb").style.display = "none"; |
144 document.getElementById("top_blurb_error").style.display = "block"; | 147 document.getElementById("top_blurb_error").style.display = "block"; |
| 148 document.getElementById('Email').disabled = false; |
| 149 document.getElementById('Passwd').disabled = false; |
145 } | 150 } |
146 | 151 |
147 function resetErrorVisibility() { | 152 function resetErrorVisibility() { |
148 setElementDisplay("errormsg_0_Email", 'none'); | 153 setElementDisplay("errormsg_0_Email", 'none'); |
149 setElementDisplay("errormsg_0_Password", 'none'); | 154 setElementDisplay("errormsg_0_Password", 'none'); |
150 setElementDisplay("errormsg_1_Password", 'none'); | 155 setElementDisplay("errormsg_1_Password", 'none'); |
151 setElementDisplay("errormsg_0_Connection", 'none'); | 156 setElementDisplay("errormsg_0_Connection", 'none'); |
152 } | 157 } |
153 | 158 |
154 function setErrorVisibility() { | 159 function setErrorVisibility() { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 </form> | 353 </form> |
349 </td> | 354 </td> |
350 </tr> | 355 </tr> |
351 </table> | 356 </table> |
352 <div class="endaligned"> | 357 <div class="endaligned"> |
353 <input type="button" name="cancel" i18n-values="value:cancel" | 358 <input type="button" name="cancel" i18n-values="value:cancel" |
354 onclick="CloseDialog();" style="width:85" /> | 359 onclick="CloseDialog();" style="width:85" /> |
355 </div> | 360 </div> |
356 </body> | 361 </body> |
357 </html> | 362 </html> |
OLD | NEW |