OLD | NEW |
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html i18n-values="dir:textdirection;" id="t"> | 2 <html i18n-values="dir:textdirection;" id="t"> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <title i18n-content="title"></title> | 5 <title i18n-content="title"></title> |
6 | 6 |
7 <!-- TODO(zelidrag) need a better icon here --> | 7 <!-- TODO(zelidrag) need a better icon here --> |
8 <link rel="icon" href="../../app/theme/history_favicon.png"> | 8 <link rel="icon" href="../../app/theme/history_favicon.png"> |
9 | 9 |
10 <script src="chrome://resources/js/class_list.js"></script> | 10 <script src="chrome://resources/js/class_list.js"></script> |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 Preferences.getInstance().initialize(); | 132 Preferences.getInstance().initialize(); |
133 OptionsPage.initialize(); | 133 OptionsPage.initialize(); |
134 | 134 |
135 // TODO(csilv): Save/restore last selected page. | 135 // TODO(csilv): Save/restore last selected page. |
136 if (cr.isChromeOS) { | 136 if (cr.isChromeOS) { |
137 OptionsPage.showPageByName(SystemOptions.getInstance().name); | 137 OptionsPage.showPageByName(SystemOptions.getInstance().name); |
138 } else { | 138 } else { |
139 OptionsPage.showPageByName(BrowserOptions.getInstance().name); | 139 OptionsPage.showPageByName(BrowserOptions.getInstance().name); |
140 } | 140 } |
| 141 |
| 142 var subpagesNavTabs = document.querySelectorAll('.subpages-nav-tabs'); |
| 143 for(var i = 0; i < subpagesNavTabs.length; i++) { |
| 144 subpagesNavTabs[i].onclick = function(event) { |
| 145 OptionsPage.showTab(event.srcElement); |
| 146 } |
| 147 } |
141 } | 148 } |
142 | 149 |
143 document.addEventListener('DOMContentLoaded', load); | 150 document.addEventListener('DOMContentLoaded', load); |
144 | 151 |
145 window.onpopstate = function(e) { | 152 window.onpopstate = function(e) { |
146 options.OptionsPage.setState(e.state); | 153 options.OptionsPage.setState(e.state); |
147 }; | 154 }; |
148 </script> | 155 </script> |
149 <link rel="stylesheet" href="chrome://resources/css/list.css"> | 156 <link rel="stylesheet" href="chrome://resources/css/list.css"> |
150 <link rel="stylesheet" href="dom_ui.css"> | 157 <link rel="stylesheet" href="dom_ui.css"> |
151 <link rel="stylesheet" href="options/options_page.css"> | 158 <link rel="stylesheet" href="options/options_page.css"> |
152 <link rel="stylesheet" href="options/browser_options_page.css"> | 159 <link rel="stylesheet" href="options/browser_options_page.css"> |
153 <link rel="stylesheet" href="options/content_settings_page.css"> | |
154 <link rel="stylesheet" href="options/content_settings_exceptions_area.css"> | 160 <link rel="stylesheet" href="options/content_settings_exceptions_area.css"> |
155 <link rel="stylesheet" href="options/clear_browser_data_overlay.css"> | 161 <link rel="stylesheet" href="options/clear_browser_data_overlay.css"> |
156 <link rel="stylesheet" href="options/import_data_overlay.css"> | 162 <link rel="stylesheet" href="options/import_data_overlay.css"> |
| 163 <link rel="stylesheet" href="options/subpages_tab_controls.css"> |
157 <if expr="pp_ifdef('chromeos')"> | 164 <if expr="pp_ifdef('chromeos')"> |
158 <link rel="stylesheet" href="options/chromeos_accounts_options_page.css"> | 165 <link rel="stylesheet" href="options/chromeos_accounts_options_page.css"> |
159 <link rel="stylesheet" href="options/chromeos_internet_options_page.css"> | 166 <link rel="stylesheet" href="options/chromeos_internet_options_page.css"> |
160 <link rel="stylesheet" href="options/chromeos_language_options.css"> | 167 <link rel="stylesheet" href="options/chromeos_language_options.css"> |
161 </if> | 168 </if> |
162 </head> | 169 </head> |
163 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> | 170 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> |
164 <div class="header"> | 171 <div class="header"> |
165 </div> | 172 </div> |
166 <div id="overlay" class="overlay hidden"> | 173 <div id="overlay" class="overlay hidden"> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); | 222 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); |
216 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); | 223 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); |
217 cr.ui.decorate('input[pref][type=range]', options.PrefRange); | 224 cr.ui.decorate('input[pref][type=range]', options.PrefRange); |
218 cr.ui.decorate('select[pref]', options.PrefSelect); | 225 cr.ui.decorate('select[pref]', options.PrefSelect); |
219 cr.ui.decorate('input[pref][type=url]', options.PrefTextField); | 226 cr.ui.decorate('input[pref][type=url]', options.PrefTextField); |
220 cr.ui.decorate('#contentSettingsPage input[type=radio]', | 227 cr.ui.decorate('#contentSettingsPage input[type=radio]', |
221 options.ContentSettingsRadio); | 228 options.ContentSettingsRadio); |
222 </script> | 229 </script> |
223 </body> | 230 </body> |
224 </html> | 231 </html> |
OLD | NEW |