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

Unified Diff: chrome/browser/resources/options/autofill_edit_address_overlay.js

Issue 6930037: Autofill DOMUI Prefs should work with i18n phone numbers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding DEPS. Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
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 e6827592b771fd8d23fdb682b786c7ae11c8f314..51f5666688f169c70e1940eaf536f91bb74b3c2b 100644
--- a/chrome/browser/resources/options/autofill_edit_address_overlay.js
+++ b/chrome/browser/resources/options/autofill_edit_address_overlay.js
@@ -59,11 +59,11 @@ cr.define('options', function() {
list.autoExpands = true;
list = $('phone-list');
- options.autofillOptions.AutofillValuesList.decorate(list);
+ options.autofillOptions.AutofillPhoneValuesList.decorate(list);
list.autoExpands = true;
list = $('fax-list');
- options.autofillOptions.AutofillValuesList.decorate(list);
+ options.autofillOptions.AutofillFaxValuesList.decorate(list);
list.autoExpands = true;
list = $('email-list');
@@ -299,6 +299,16 @@ cr.define('options', function() {
$('autofill-address-title').textContent = title;
};
+ AutofillEditAddressOverlay.setValidatedPhoneNumbers = function(numbers) {
+ AutofillEditAddressOverlay.getInstance().setMultiValueList_('phone-list',
+ numbers);
+ };
+
+ AutofillEditAddressOverlay.setValidatedFaxNumbers = function(numbers) {
+ AutofillEditAddressOverlay.getInstance().setMultiValueList_('fax-list',
+ numbers);
+ };
+
// Export
return {
AutofillEditAddressOverlay: AutofillEditAddressOverlay

Powered by Google App Engine
This is Rietveld 408576698