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

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

Issue 516403003: Focus the first input when adding a new Autofill cc or address (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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_options.js
diff --git a/chrome/browser/resources/options/autofill_options.js b/chrome/browser/resources/options/autofill_options.js
index 5e64a716994ff733d2809edb00afabd02a01740c..d0888c5183129566e0ac1fdb014bd8471ec86e68 100644
--- a/chrome/browser/resources/options/autofill_options.js
+++ b/chrome/browser/resources/options/autofill_options.js
@@ -104,6 +104,7 @@ cr.define('options', function() {
var title = loadTimeData.getString('addAddressTitle');
AutofillEditAddressOverlay.setTitle(title);
PageManager.showPageByName('autofillEditAddress');
+ AutofillEditAddressOverlay.loadAddress(null);
},
/**
@@ -115,6 +116,7 @@ cr.define('options', function() {
var title = loadTimeData.getString('addCreditCardTitle');
AutofillEditCreditCardOverlay.setTitle(title);
PageManager.showPageByName('autofillEditCreditCard');
+ AutofillEditCreditCardOverlay.loadCreditCard(null);
},
/**
@@ -181,8 +183,8 @@ cr.define('options', function() {
/**
* Shows the 'Edit credit card' overlay, using the data in |credit_card| to
- * fill the input fields. |address| is a list with one item, an associative
- * array that contains the credit card data.
+ * fill the input fields. |creditCard| is a list with one item, an
+ * associative array that contains the credit card data.
* @private
*/
showEditCreditCardOverlay_: function(creditCard) {

Powered by Google App Engine
This is Rietveld 408576698