OLD | NEW |
1 // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @fileoverview Offline login implementation. | 6 * @fileoverview Offline login implementation. |
7 */ | 7 */ |
8 | 8 |
9 function load() { | 9 function load() { |
10 var params = getUrlSearchParams(location.search); | 10 var params = getUrlSearchParams(location.search); |
11 | 11 |
(...skipping 24 matching lines...) Expand all Loading... |
36 form.email.value = email; | 36 form.email.value = email; |
37 form.password.classList.add('form-error'); | 37 form.password.classList.add('form-error'); |
38 form.password.focus(); | 38 form.password.focus(); |
39 } else { | 39 } else { |
40 form.email.focus(); | 40 form.email.focus(); |
41 } | 41 } |
42 window.parent.postMessage({'method': 'loginUILoaded'}, 'chrome://oobe/'); | 42 window.parent.postMessage({'method': 'loginUILoaded'}, 'chrome://oobe/'); |
43 } | 43 } |
44 | 44 |
45 document.addEventListener('DOMContentLoaded', load); | 45 document.addEventListener('DOMContentLoaded', load); |
OLD | NEW |