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

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

Issue 243013004: i18n address editing in chrome://settings/autofillEditAddress. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows build. Created 6 years, 7 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.autofillOptions', function() { 5 cr.define('options.autofillOptions', function() {
6 /** @const */ var DeletableItem = options.DeletableItem; 6 /** @const */ var DeletableItem = options.DeletableItem;
7 /** @const */ var DeletableItemList = options.DeletableItemList; 7 /** @const */ var DeletableItemList = options.DeletableItemList;
8 /** @const */ var InlineEditableItem = options.InlineEditableItem; 8 /** @const */ var InlineEditableItem = options.InlineEditableItem;
9 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; 9 /** @const */ var InlineEditableItemList = options.InlineEditableItemList;
10 10
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 AutofillPhoneValuesList.prototype = { 482 AutofillPhoneValuesList.prototype = {
483 __proto__: AutofillValuesList.prototype, 483 __proto__: AutofillValuesList.prototype,
484 484
485 /** @override */ 485 /** @override */
486 validateAndSave: function(index, remove, value) { 486 validateAndSave: function(index, remove, value) {
487 var numbers = this.dataModel.slice(0, this.dataModel.length - 1); 487 var numbers = this.dataModel.slice(0, this.dataModel.length - 1);
488 numbers.splice(index, remove, value); 488 numbers.splice(index, remove, value);
489 var info = new Array(); 489 var info = new Array();
490 info[0] = index; 490 info[0] = index;
491 info[1] = numbers; 491 info[1] = numbers;
492 info[2] = $('country').value; 492 info[2] = document.querySelector(
493 '#autofill-edit-address-overlay [field=country]').value;
493 this.validationRequests_++; 494 this.validationRequests_++;
494 chrome.send('validatePhoneNumbers', info); 495 chrome.send('validatePhoneNumbers', info);
495 }, 496 },
496 497
497 /** 498 /**
498 * The number of ongoing validation requests. 499 * The number of ongoing validation requests.
499 * @type {number} 500 * @type {number}
500 * @private 501 * @private
501 */ 502 */
502 validationRequests_: 0, 503 validationRequests_: 0,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 CreditCardListItem: CreditCardListItem, 542 CreditCardListItem: CreditCardListItem,
542 ValuesListItem: ValuesListItem, 543 ValuesListItem: ValuesListItem,
543 NameListItem: NameListItem, 544 NameListItem: NameListItem,
544 AutofillAddressList: AutofillAddressList, 545 AutofillAddressList: AutofillAddressList,
545 AutofillCreditCardList: AutofillCreditCardList, 546 AutofillCreditCardList: AutofillCreditCardList,
546 AutofillValuesList: AutofillValuesList, 547 AutofillValuesList: AutofillValuesList,
547 AutofillNameValuesList: AutofillNameValuesList, 548 AutofillNameValuesList: AutofillNameValuesList,
548 AutofillPhoneValuesList: AutofillPhoneValuesList, 549 AutofillPhoneValuesList: AutofillPhoneValuesList,
549 }; 550 };
550 }); 551 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698