From ef99e6a6b1cd8d55fdab9ff94e7bfc3d5c538b8f Mon Sep 17 00:00:00 2001 From: Ignatz Date: Fri, 18 May 2018 11:13:01 +0200 Subject: indend corrections --- client/components/cards/cardCustomFields.js | 6 +++--- client/components/sidebar/sidebarCustomFields.js | 10 +++++----- client/lib/datepicker.js | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/client/components/cards/cardCustomFields.js b/client/components/cards/cardCustomFields.js index 019fcab5..aa50caec 100644 --- a/client/components/cards/cardCustomFields.js +++ b/client/components/cards/cardCustomFields.js @@ -95,9 +95,9 @@ CardCustomField.register('cardCustomField'); } showDate() { - // this will start working once mquandalle:moment - // is updated to at least moment.js 2.10.5 - // until then, the date is displayed in the "L" format + // this will start working once mquandalle:moment + // is updated to at least moment.js 2.10.5 + // until then, the date is displayed in the "L" format return this.date.get().calendar(null, { sameElse: 'llll', }); diff --git a/client/components/sidebar/sidebarCustomFields.js b/client/components/sidebar/sidebarCustomFields.js index d74a5919..e56d744e 100644 --- a/client/components/sidebar/sidebarCustomFields.js +++ b/client/components/sidebar/sidebarCustomFields.js @@ -27,11 +27,11 @@ const CreateCustomFieldPopup = BlazeComponent.extendComponent({ types() { const currentType = this.data().type; return this._types. - map((type) => {return { - value: type, - name: TAPi18n.__(`custom-field-${type}`), - selected: type === currentType, - };}); + map((type) => {return { + value: type, + name: TAPi18n.__(`custom-field-${type}`), + selected: type === currentType, + };}); }, isTypeNotSelected(type) { diff --git a/client/lib/datepicker.js b/client/lib/datepicker.js index 947970ee..ab2da0bd 100644 --- a/client/lib/datepicker.js +++ b/client/lib/datepicker.js @@ -45,7 +45,7 @@ DatePicker = BlazeComponent.extendComponent({ events() { return [{ 'keyup .js-date-field'() { - // parse for localized date format in strict mode + // parse for localized date format in strict mode const dateMoment = moment(this.find('#date').value, 'L', true); if (dateMoment.isValid()) { this.error.set(''); @@ -53,7 +53,7 @@ DatePicker = BlazeComponent.extendComponent({ } }, 'keyup .js-time-field'() { - // parse for localized time format in strict mode + // parse for localized time format in strict mode const dateMoment = moment(this.find('#time').value, 'LT', true); if (dateMoment.isValid()) { this.error.set(''); @@ -62,7 +62,7 @@ DatePicker = BlazeComponent.extendComponent({ 'submit .edit-date'(evt) { evt.preventDefault(); - // if no time was given, init with 12:00 + // if no time was given, init with 12:00 const time = evt.target.time.value || moment(new Date().setHours(12, 0, 0)).format('LT'); const dateString = `${evt.target.date.value} ${time}`; -- cgit v1.2.3-1-g7c22