Index: chrome/browser/resources/options/autofill_edit_address_overlay.js |
diff --git a/chrome/browser/resources/options/autofill_edit_address_overlay.js b/chrome/browser/resources/options/autofill_edit_address_overlay.js |
index fe461f3e7ad4599586909eae97d3f8f4cb34aee6..9921e1c9116ef041d4e0ce7630db43907395d15a 100644 |
--- a/chrome/browser/resources/options/autofill_edit_address_overlay.js |
+++ b/chrome/browser/resources/options/autofill_edit_address_overlay.js |
@@ -31,10 +31,10 @@ cr.define('options', function() { |
OptionsPage.prototype.initializePage.call(this); |
var self = this; |
- $('autoFillEditAddressCancelButton').onclick = function(event) { |
+ $('auto-fill-edit-address-cancel-button').onclick = function(event) { |
self.dismissOverlay_(); |
} |
- $('autoFillEditAddressApplyButton').onclick = function(event) { |
+ $('auto-fill-edit-address-apply-button').onclick = function(event) { |
self.saveAddress_(); |
self.dismissOverlay_(); |
} |
@@ -63,10 +63,10 @@ cr.define('options', function() { |
saveAddress_: function() { |
var address = new Array(); |
address[0] = this.guid; |
- address[1] = $('fullName').value; |
- address[2] = $('companyName').value; |
- address[3] = $('addrLine1').value; |
- address[4] = $('addrLine2').value; |
+ address[1] = $('full-name').value; |
+ address[2] = $('company-name').value; |
+ address[3] = $('addr-line-1').value; |
+ address[4] = $('addr-line-2').value; |
address[5] = $('city').value; |
address[6] = $('state').value; |
address[7] = $('zipCode').value; |
@@ -86,8 +86,8 @@ cr.define('options', function() { |
*/ |
connectInputEvents_: function() { |
var self = this; |
- $('fullName').oninput = $('companyName').oninput = |
- $('addrLine1').oninput = $('addrLine2').oninput = $('city').oninput = |
+ $('full-name').oninput = $('company-name').oninput = |
+ $('addr-line-1').oninput = $('addr-line-2').oninput = $('city').oninput = |
$('state').oninput = $('country').oninput = $('zipCode').oninput = |
$('phone').oninput = $('fax').oninput = |
$('email').oninput = function(event) { |
@@ -102,11 +102,12 @@ cr.define('options', function() { |
*/ |
inputFieldChanged_: function() { |
var disabled = |
- !$('fullName').value && !$('companyName').value && |
- !$('addrLine1').value && !$('addrLine2').value && !$('city').value && |
- !$('state').value && !$('zipCode').value && !('country').value && |
- !$('phone').value && !$('fax').value && !$('email').value; |
- $('autoFillEditAddressApplyButton').disabled = disabled; |
+ !$('full-name').value && !$('company-name').value && |
+ !$('addr-line-1').value && !$('addr-line-2').value && |
+ !$('city').value && !$('state').value && !$('zipCode').value && |
+ !('country').value && !$('phone').value && !$('fax').value && |
+ !$('email').value; |
+ $('auto-fill-edit-address-apply-button').disabled = disabled; |
}, |
/** |
@@ -114,10 +115,10 @@ cr.define('options', function() { |
* @private |
*/ |
clearInputFields_: function() { |
- $('fullName').value = ''; |
- $('companyName').value = ''; |
- $('addrLine1').value = ''; |
- $('addrLine2').value = ''; |
+ $('full-name').value = ''; |
+ $('company-name').value = ''; |
+ $('addr-line-1').value = ''; |
+ $('addr-line-2').value = ''; |
$('city').value = ''; |
$('state').value = ''; |
$('zipCode').value = ''; |
@@ -143,10 +144,10 @@ cr.define('options', function() { |
* @private |
*/ |
setInputFields_: function(address) { |
- $('fullName').value = address['fullName']; |
- $('companyName').value = address['companyName']; |
- $('addrLine1').value = address['addrLine1']; |
- $('addrLine2').value = address['addrLine2']; |
+ $('full-name').value = address['fullName']; |
+ $('company-name').value = address['companyName']; |
+ $('addr-line-1').value = address['addrLine1']; |
+ $('addr-line-2').value = address['addrLine2']; |
$('city').value = address['city']; |
$('state').value = address['state']; |
$('zipCode').value = address['zipCode']; |
@@ -166,7 +167,7 @@ cr.define('options', function() { |
}; |
AutoFillEditAddressOverlay.setTitle = function(title) { |
- $('autoFillAddressTitle').textContent = title; |
+ $('auto-fill-address-title').textContent = title; |
}; |
// Export |