Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Side by Side Diff: chrome/browser/resources/options2/advanced_options.js

Issue 9316086: Fix JavaScript errors in options2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 cr.define('options', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 // 9 //
10 // AdvancedOptions class 10 // AdvancedOptions class
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 if ($('Custom')) 284 if ($('Custom'))
285 selectCtl.remove($('Custom').index); 285 selectCtl.remove($('Custom').index);
286 return; 286 return;
287 } 287 }
288 } 288 }
289 289
290 // Add/Select Custom Option in the font size label list. 290 // Add/Select Custom Option in the font size label list.
291 if (!$('Custom')) { 291 if (!$('Custom')) {
292 var option = new Option(localStrings.getString('fontSizeLabelCustom'), 292 var option = new Option(localStrings.getString('fontSizeLabelCustom'),
293 -1, false, true); 293 -1, false, true);
294 option.setAttribute("id", "Custom"); 294 option.setAttribute('id', 'Custom');
295 selectCtl.add(option); 295 selectCtl.add(option);
296 } 296 }
297 $('Custom').selected = true; 297 $('Custom').selected = true;
298 }; 298 };
299 299
300 /** 300 /**
301 * Populate the page zoom selector with values received from the caller. 301 * Populate the page zoom selector with values received from the caller.
302 * @param {Array} items An array of items to populate the selector. 302 * @param {Array} items An array of items to populate the selector.
303 * each object is an array with three elements as follows: 303 * each object is an array with three elements as follows:
304 * 0: The title of the item (string). 304 * 0: The title of the item (string).
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 if (device.pairing) 461 if (device.pairing)
462 BluetoothPairing.showDialog(device); 462 BluetoothPairing.showDialog(device);
463 }; 463 };
464 464
465 // Export 465 // Export
466 return { 466 return {
467 AdvancedOptions: AdvancedOptions 467 AdvancedOptions: AdvancedOptions
468 }; 468 };
469 469
470 }); 470 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698