OLD | NEW |
1 // Copyright (c) 2012 The Chromium 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 message screen implementation. | 6 * @fileoverview Offline message screen implementation. |
7 */ | 7 */ |
8 | 8 |
9 cr.define('login', function() { | 9 cr.define('login', function() { |
10 // Screens that should have offline message overlay. | 10 // Screens that should have offline message overlay. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 $('error-offline-login-link').onclick = function() { | 119 $('error-offline-login-link').onclick = function() { |
120 chrome.send('offlineLogin'); | 120 chrome.send('offlineLogin'); |
121 }; | 121 }; |
122 }, | 122 }, |
123 | 123 |
124 onBeforeShow: function(lastNetworkType) { | 124 onBeforeShow: function(lastNetworkType) { |
125 var currentScreen = Oobe.getInstance().currentScreen; | 125 var currentScreen = Oobe.getInstance().currentScreen; |
126 | 126 |
127 cr.ui.DropDown.show('offline-networks-list', false, lastNetworkType); | 127 cr.ui.DropDown.show('offline-networks-list', false, lastNetworkType); |
128 | 128 |
129 $('error-guest-signin').hidden = $('guestSignin').hidden || | 129 $('error-guest-signin').hidden = $('guestSignin').hidden; |
130 !$('add-user-header-bar-item').hidden; | |
131 | 130 |
132 $('error-offline-login').hidden = !currentScreen.isOfflineAllowed; | 131 $('error-offline-login').hidden = !currentScreen.isOfflineAllowed; |
133 }, | 132 }, |
134 | 133 |
135 onBeforeHide: function() { | 134 onBeforeHide: function() { |
136 cr.ui.DropDown.hide('offline-networks-list'); | 135 cr.ui.DropDown.hide('offline-networks-list'); |
137 }, | 136 }, |
138 | 137 |
139 /** | 138 /** |
140 * Prepares error screen to show proxy error. | 139 * Prepares error screen to show proxy error. |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 * via template. | 321 * via template. |
323 */ | 322 */ |
324 ErrorMessageScreen.updateLocalizedContent = function() { | 323 ErrorMessageScreen.updateLocalizedContent = function() { |
325 $('error-message').updateLocalizedContent_(); | 324 $('error-message').updateLocalizedContent_(); |
326 }; | 325 }; |
327 | 326 |
328 return { | 327 return { |
329 ErrorMessageScreen: ErrorMessageScreen | 328 ErrorMessageScreen: ErrorMessageScreen |
330 }; | 329 }; |
331 }); | 330 }); |
OLD | NEW |