Chromium Code Reviews| Index: chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js |
| diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js b/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js |
| index 9ee7c53ef69d1f86b069d0e418b9b0045d4db233..8caf82bd041054f9e3006efb884fb7b6eea56e9d 100644 |
| --- a/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js |
| +++ b/chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.js |
| @@ -34,7 +34,18 @@ Polymer({ |
| monthList_: { |
| type: Array, |
| value: [ |
| - '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', |
| + '01', |
| + '02', |
| + '03', |
| + '04', |
| + '05', |
| + '06', |
| + '07', |
| + '08', |
| + '09', |
| + '10', |
| + '11', |
| + '12', |
|
dschuyler
2017/06/16 23:09:07
Will removing the last comma bring this back to on
Dan Beam
2017/06/17 00:11:06
Done.
|
| ], |
| }, |
| @@ -61,9 +72,10 @@ Polymer({ |
| */ |
| checkIfCardExpired_: function(expirationMonth_, expirationYear_) { |
| var now = new Date(); |
| - return (expirationYear_ < now.getFullYear() || |
| - (expirationYear_ == now.getFullYear() && |
| - expirationMonth_ <= now.getMonth())); |
| + return ( |
| + expirationYear_ < now.getFullYear() || |
| + (expirationYear_ == now.getFullYear() && |
| + expirationMonth_ <= now.getMonth())); |
| }, |
| /** @override */ |
| @@ -127,8 +139,8 @@ Polymer({ |
| // If the card is expired, reflect the error to the user. |
| // Otherwise, update the card, save and close the dialog. |
| - if (!this.checkIfCardExpired_(this.expirationMonth_, |
| - this.expirationYear_)) { |
| + if (!this.checkIfCardExpired_( |
| + this.expirationMonth_, this.expirationYear_)) { |
| this.creditCard.expirationYear = this.expirationYear_; |
| this.creditCard.expirationMonth = this.expirationMonth_; |
| this.fire('save-credit-card', this.creditCard); |