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 369b7d941ff57dc67d4f3237d4620f280823f012..e10177561ba46f93db01ce061eddcb30cc0f8acf 100644 |
--- a/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js |
+++ b/chrome/browser/resources/options/autofill_edit_creditcard_overlay.js |
@@ -12,9 +12,10 @@ cr.define('options', function() { |
* @class |
*/ |
function AutofillEditCreditCardOverlay() { |
- Page.call(this, 'autofillEditCreditCard', |
- loadTimeData.getString('autofillEditCreditCardTitle'), |
- 'autofill-edit-credit-card-overlay'); |
+ Page.call( |
+ this, 'autofillEditCreditCard', |
+ loadTimeData.getString('autofillEditCreditCardTitle'), |
+ 'autofill-edit-credit-card-overlay'); |
} |
cr.addSingletonGetter(AutofillEditCreditCardOverlay); |
@@ -42,11 +43,11 @@ cr.define('options', function() { |
}, |
/** |
- * Specifically catch the situations in which the overlay is cancelled |
- * externally (e.g. by pressing <Esc>), so that the input fields and |
- * GUID can be properly cleared. |
- * @override |
- */ |
+ * Specifically catch the situations in which the overlay is cancelled |
+ * externally (e.g. by pressing <Esc>), so that the input fields and |
+ * GUID can be properly cleared. |
+ * @override |
+ */ |
handleCancel: function() { |
this.dismissOverlay_(); |
}, |
@@ -78,8 +79,9 @@ cr.define('options', function() { |
// If the GUID is empty, this form is being used to add a new card, |
// rather than edit an existing one. |
if (!this.guid_.length) { |
- chrome.send('coreOptionsUserMetricsAction', |
- ['Options_AutofillCreditCardAdded']); |
+ chrome.send( |
+ 'coreOptionsUserMetricsAction', |
+ ['Options_AutofillCreditCardAdded']); |
} |
}, |
@@ -104,7 +106,7 @@ cr.define('options', function() { |
*/ |
inputFieldChanged_: function(opt_event) { |
var disabled = !$('name-on-card').value.trim() && |
- !$('credit-card-number').value.trim(); |
+ !$('credit-card-number').value.trim(); |
$('autofill-edit-credit-card-apply-button').disabled = disabled; |
}, |
@@ -217,7 +219,5 @@ cr.define('options', function() { |
}; |
// Export |
- return { |
- AutofillEditCreditCardOverlay: AutofillEditCreditCardOverlay |
- }; |
+ return {AutofillEditCreditCardOverlay: AutofillEditCreditCardOverlay}; |
}); |