OLD | NEW |
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 Loading... |
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 Loading... |
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 }); |
OLD | NEW |