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

Side by Side Diff: chrome/browser/resources/options/autofill_edit_address_overlay.js

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
8 8
9 /** 9 /**
10 * AutofillEditAddressOverlay class 10 * AutofillEditAddressOverlay class
(...skipping 26 matching lines...) Expand all
37 /** 37 /**
38 * The saved field values for the address. For example, if the user changes 38 * The saved field values for the address. For example, if the user changes
39 * from United States to Switzerland, then the State field will be hidden 39 * from United States to Switzerland, then the State field will be hidden
40 * and its value will be stored here. If the user changes back to United 40 * and its value will be stored here. If the user changes back to United
41 * States, then the State field will be restored to its previous value, as 41 * States, then the State field will be restored to its previous value, as
42 * stored in this object. 42 * stored in this object.
43 * @type {Object} 43 * @type {Object}
44 */ 44 */
45 savedFieldValues_: {}, 45 savedFieldValues_: {},
46 46
47 /** 47 /** @override */
48 * Initializes the page.
49 */
50 initializePage: function() { 48 initializePage: function() {
51 OptionsPage.prototype.initializePage.call(this); 49 OptionsPage.prototype.initializePage.call(this);
52 50
53 this.createMultiValueLists_(); 51 this.createMultiValueLists_();
54 52
55 var self = this; 53 var self = this;
56 $('autofill-edit-address-cancel-button').onclick = function(event) { 54 $('autofill-edit-address-cancel-button').onclick = function(event) {
57 self.dismissOverlay_(); 55 self.dismissOverlay_();
58 }; 56 };
59 57
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 var phoneList = instance.pageDiv.querySelector('[field=phone]'); 423 var phoneList = instance.pageDiv.querySelector('[field=phone]');
426 instance.setMultiValueList_(phoneList, numbers); 424 instance.setMultiValueList_(phoneList, numbers);
427 phoneList.didReceiveValidationResult(); 425 phoneList.didReceiveValidationResult();
428 }; 426 };
429 427
430 // Export 428 // Export
431 return { 429 return {
432 AutofillEditAddressOverlay: AutofillEditAddressOverlay 430 AutofillEditAddressOverlay: AutofillEditAddressOverlay
433 }; 431 };
434 }); 432 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698