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

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

Issue 6034005: DOMUI: Implement the new-style Autofill options page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes 2. Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 OptionsPage = options.OptionsPage; 6 const OptionsPage = options.OptionsPage;
7 7
8 // The GUID of the loaded address. 8 // The GUID of the loaded address.
9 var guid; 9 var guid;
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 address[3] = $('addrLine1').value; 68 address[3] = $('addrLine1').value;
69 address[4] = $('addrLine2').value; 69 address[4] = $('addrLine2').value;
70 address[5] = $('city').value; 70 address[5] = $('city').value;
71 address[6] = $('state').value; 71 address[6] = $('state').value;
72 address[7] = $('zipCode').value; 72 address[7] = $('zipCode').value;
73 address[8] = $('country').value; 73 address[8] = $('country').value;
74 address[9] = $('phone').value; 74 address[9] = $('phone').value;
75 address[10] = $('fax').value; 75 address[10] = $('fax').value;
76 address[11] = $('email').value; 76 address[11] = $('email').value;
77 77
78 chrome.send('updateAddress', address); 78 chrome.send('setAddress', address);
79 }, 79 },
80 80
81 /** 81 /**
82 * Connects each input field to the inputFieldChanged_() method that enables 82 * Connects each input field to the inputFieldChanged_() method that enables
83 * or disables the 'Ok' button based on whether all the fields are empty or 83 * or disables the 'Ok' button based on whether all the fields are empty or
84 * not. 84 * not.
85 * @private 85 * @private
86 */ 86 */
87 connectInputEvents_: function() { 87 connectInputEvents_: function() {
88 var self = this; 88 var self = this;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 AutoFillEditAddressOverlay.setTitle = function(title) { 168 AutoFillEditAddressOverlay.setTitle = function(title) {
169 $('autoFillAddressTitle').textContent = title; 169 $('autoFillAddressTitle').textContent = title;
170 }; 170 };
171 171
172 // Export 172 // Export
173 return { 173 return {
174 AutoFillEditAddressOverlay: AutoFillEditAddressOverlay 174 AutoFillEditAddressOverlay: AutoFillEditAddressOverlay
175 }; 175 };
176 176
177 }); 177 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698