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

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

Issue 3125039: DOMUI: Several fixes for AutoFill page. (Closed)
Patch Set: Created 10 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_edit_creditcard_overlay.js
diff --git a/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js b/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
index d66f8c212f689b56cdb115b2f771a05243abc4c6..44e9b4ebfe28c8005a5793d925a8c69da18f2e14 100644
--- a/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
+++ b/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js
@@ -40,16 +40,7 @@ cr.define('options', function() {
* @private
*/
dismissOverlay_: function() {
- $('fullName').value = '';
- $('companyName').value = '';
- $('addrLine1').value = '';
- $('addrLine2').value = '';
- $('city').value = '';
- $('state').value = '';
- $('zipCode').value = '';
- $('phone').value = '';
- $('fax').value = '';
- $('email').value = '';
+ AutoFillEditCreditCardOverlay.clearInputFields();
OptionsPage.clearOverlays();
},
@@ -96,6 +87,18 @@ cr.define('options', function() {
}
};
+ AutoFillEditCreditCardOverlay.clearInputFields = function(title) {
+ $('nameOnCard').value = '';
+ $('billingAddress').value = '';
+ $('creditCardNumber').value = '';
+ $('expirationMonth').value = '';
+ $('expirationYear').value = '';
+ };
+
+ AutoFillEditCreditCardOverlay.setTitle = function(title) {
+ $('autoFillCreditCardTitle').textContent = title;
+ };
+
// Export
return {
AutoFillEditCreditCardOverlay: AutoFillEditCreditCardOverlay

Powered by Google App Engine
This is Rietveld 408576698