OLD | NEW |
1 // Copyright (c) 2010 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 cr.define('cloudprint', function () { | 5 cr.define('cloudprint', function () { |
6 function hideAllPages() { | 6 function hideAllPages() { |
7 var pages = ['cloudprintsetup', 'setupdone']; | 7 var pages = ['cloudprintsetup', 'setupdone']; |
8 for (var i = 0; i < pages.length; ++i) { | 8 for (var i = 0; i < pages.length; ++i) { |
9 $(pages[i]).style.display = 'none'; | 9 $(pages[i]).style.display = 'none'; |
10 $(pages[i]).tabIndex = -1; | 10 $(pages[i]).tabIndex = -1; |
11 } | 11 } |
(...skipping 26 matching lines...) Expand all Loading... |
38 } | 38 } |
39 | 39 |
40 return { | 40 return { |
41 hideAllPages: hideAllPages, | 41 hideAllPages: hideAllPages, |
42 showPage: showPage, | 42 showPage: showPage, |
43 showInitialPage: showInitialPage, | 43 showInitialPage: showInitialPage, |
44 showSetupLogin: showSetupLogin, | 44 showSetupLogin: showSetupLogin, |
45 showSetupDone: showSetupDone | 45 showSetupDone: showSetupDone |
46 }; | 46 }; |
47 }); | 47 }); |
OLD | NEW |