| 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..922c08eb137fcdecab409c65ad4643c0f35afec1 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,7 @@ 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'
|
| ],
|
| },
|
|
|
| @@ -61,9 +61,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 +128,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);
|
|
|