OLD | NEW |
---|---|
1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
2 <html i18n-values="dir:textdirection;"> | 2 <html i18n-values="dir:textdirection;"> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"/> | 4 <meta charset="utf-8"/> |
5 <title i18n-content="page-title"></title> | 5 <title i18n-content="page-title"></title> |
6 <!-- We want to keep our style in sync with the options page. --> | 6 <!-- We want to keep our style in sync with the options page. --> |
7 <link rel="stylesheet" href="dom_ui.css"> | 7 <link rel="stylesheet" href="dom_ui.css"> |
8 <link rel="stylesheet" href="options/options_page.css"> | 8 <link rel="stylesheet" href="options/options_page.css"> |
9 <link rel="stylesheet" href="bug_report.css"> | 9 <link rel="stylesheet" href="bug_report.css"> |
10 | 10 |
11 <script src="shared/js/local_strings.js"></script> | 11 <script src="shared/js/local_strings.js"></script> |
12 <script src="shared/js/util.js"></script> | 12 <script src="shared/js/util.js"></script> |
13 <script src="bug_report.js"></script> | 13 <script src="bug_report.js"></script> |
14 <script> | 14 <script> |
15 | 15 |
16 /////////////////////////////////////////////////////////////////////////////// | 16 /////////////////////////////////////////////////////////////////////////////// |
17 // Document Functions: | 17 // Document Functions: |
18 /** | 18 /** |
19 * Window onload handler, sets up the page. | 19 * Window onload handler, sets up the page. |
20 */ | 20 */ |
21 function load() { | 21 function load() { |
22 $('sysinfo-url').onclick = function(event) { | 22 if ($('sysinfo-url')) |
23 chrome.send('openSystemTab'); | 23 $('sysinfo-url').onclick = function(event) { |
24 }; | 24 chrome.send('openSystemTab'); |
25 }; | |
oshima
2010/12/02 18:03:30
please use if () {} for multi-line
rkc
2010/12/02 19:54:04
Done.
| |
25 | 26 |
26 var menuOffPattern = /(^\?|&)menu=off($|&)/; | 27 var menuOffPattern = /(^\?|&)menu=off($|&)/; |
27 var menuDisabled = menuOffPattern.test(window.location.search); | 28 var menuDisabled = menuOffPattern.test(window.location.search); |
28 document.documentElement.setAttribute('hide-menu', menuDisabled); | 29 document.documentElement.setAttribute('hide-menu', menuDisabled); |
29 | 30 |
30 | 31 |
31 // textContent on description-text textarea seems to default | 32 // textContent on description-text textarea seems to default |
32 // to several spaces, this resets it to empty. | 33 // to several spaces, this resets it to empty. |
33 $('description-text').textContent = ''; | 34 $('description-text').textContent = ''; |
34 | 35 |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
174 </span> | 175 </span> |
175 </td> | 176 </td> |
176 <td> | 177 <td> |
177 <input id="page-url-text" class="bug-report-field" | 178 <input id="page-url-text" class="bug-report-field" |
178 maxlength="200"> | 179 maxlength="200"> |
179 </td> | 180 </td> |
180 </tr> | 181 </tr> |
181 </table> | 182 </table> |
182 </td> | 183 </td> |
183 </tr> | 184 </tr> |
185 <if expr="pp_ifdef('chromeos')"> | |
184 <!-- User e-mail --> | 186 <!-- User e-mail --> |
185 <tr> | 187 <tr> |
186 <td> | 188 <td> |
187 <if expr="pp_ifdef('chromeos')"> | |
188 <table id="user-email-table" class="bug-report-table"> | 189 <table id="user-email-table" class="bug-report-table"> |
189 <tr> | 190 <tr> |
190 <td class="bug-report-fieldlabel"> | 191 <td class="bug-report-fieldlabel"> |
191 <input id="user-email-checkbox" type="checkbox" | 192 <input id="user-email-checkbox" type="checkbox" |
192 checked> | 193 checked> |
193 <span id="user-email-label" | 194 <span id="user-email-label" |
194 i18n-content="user-email"></span> | 195 i18n-content="user-email"></span> |
195 </td> | 196 </td> |
196 <td> | 197 <td> |
197 <label id="user-email-text" | 198 <label id="user-email-text" |
198 class="bug-report-field"></label> | 199 class="bug-report-field"></label> |
199 </td> | 200 </td> |
200 </tr> | 201 </tr> |
201 </table> | 202 </table> |
202 </if> | |
203 </td> | 203 </td> |
204 </tr> | 204 </tr> |
205 <!-- System Information --> | 205 <!-- System Information --> |
206 <tr> | 206 <tr> |
207 <td> | 207 <td> |
208 <table class="bug-report-table"> | 208 <table class="bug-report-table"> |
209 <tr> | 209 <tr> |
210 <td class="bug-report-fieldlabel"> | 210 <td class="bug-report-fieldlabel"> |
211 <input id="sys-info-checkbox" type="checkbox" | 211 <input id="sys-info-checkbox" type="checkbox" |
212 checked> | 212 checked> |
213 <span id="sysinfo-label"> | 213 <span id="sysinfo-label"> |
214 <a id="sysinfo-url" href="#" | 214 <a id="sysinfo-url" href="#" |
215 i18n-content="sysinfo"></a> | 215 i18n-content="sysinfo"></a> |
216 </span> | 216 </span> |
217 </td> | 217 </td> |
218 </tr> | 218 </tr> |
219 </table> | 219 </table> |
220 </td> | 220 </td> |
221 </tr> | 221 </tr> |
222 </if> | |
222 <!-- Screenshot --> | 223 <!-- Screenshot --> |
223 <tr> | 224 <tr> |
224 <td> | 225 <td> |
225 <table class="bug-report-table"> | 226 <table class="bug-report-table"> |
226 <tr> | 227 <tr> |
227 <td class="bug-report-fieldlabel"> | 228 <td class="bug-report-fieldlabel"> |
228 <input id="screenshot-checkbox" type="checkbox"> | 229 <input id="screenshot-checkbox" type="checkbox"> |
229 <span id="screenshot-label-current" | 230 <span id="screenshot-label-current" |
230 i18n-content="current-screenshot"> | 231 i18n-content="current-screenshot"> |
231 </span> | 232 </span> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
280 </td> | 281 </td> |
281 </tr> | 282 </tr> |
282 </tbody> | 283 </tbody> |
283 </table> | 284 </table> |
284 </div> | 285 </div> |
285 </div> | 286 </div> |
286 </div> | 287 </div> |
287 </div> | 288 </div> |
288 </body> | 289 </body> |
289 </html> | 290 </html> |
OLD | NEW |