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

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: new function instead Created 6 years, 3 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
« no previous file with comments | « chrome/browser/resources/options/autofill_edit_creditcard_overlay.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2507c2441f170598306fc0fb86ba5618c6942573 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.prepForNewAddress();
},
/**
@@ -115,6 +116,7 @@ cr.define('options', function() {
var title = loadTimeData.getString('addCreditCardTitle');
AutofillEditCreditCardOverlay.setTitle(title);
PageManager.showPageByName('autofillEditCreditCard');
+ AutofillEditCreditCardOverlay.prepForNewCard();
},
/**
@@ -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) {
« no previous file with comments | « chrome/browser/resources/options/autofill_edit_creditcard_overlay.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698