- Invio RIS migliorata grafica e aggiunto tastierino numerico.
This commit is contained in:
@@ -68,6 +68,7 @@ export const tools = {
|
||||
FILTER_MYREC: 1,
|
||||
FILTER_MYFOLLOW: 2,
|
||||
|
||||
COOK_TIPOCONTO: 'TC_',
|
||||
COOK_SEARCH: 'SEARCH_',
|
||||
COOK_SELCART: 'SELCART_',
|
||||
COOK_SELGAS: 'SELGAS',
|
||||
@@ -3105,6 +3106,12 @@ export const tools = {
|
||||
return ''
|
||||
},
|
||||
|
||||
getstrMonth3Letters(mytimestamp: Date | number | string | undefined) {
|
||||
// console.log('getstrDate', mytimestamp)
|
||||
if (mytimestamp) return date.formatDate(mytimestamp, 'MMM')
|
||||
return ''
|
||||
},
|
||||
|
||||
getstrDay(mytimestamp: Date | number | string | undefined) {
|
||||
if (mytimestamp) return date.formatDate(mytimestamp, 'D')
|
||||
return ''
|
||||
@@ -3207,7 +3214,7 @@ export const tools = {
|
||||
}
|
||||
},
|
||||
|
||||
getstrDateTimeEvent($t: any, myevent: IEvents, withhtml: boolean) {
|
||||
getstrDateTimeEvent($t: any, myevent: IEvents, withhtml: boolean, acapo: boolean = false) {
|
||||
let mystr = ''
|
||||
// is same day?
|
||||
if (this.getstrDate(myevent.dateTimeStart) === this.getstrDate(myevent.dateTimeEnd)) {
|
||||
@@ -3217,18 +3224,26 @@ export const tools = {
|
||||
${$t('cal.endtime')} ${this.getstrTime(myevent.dateTimeEnd)}`
|
||||
} else {
|
||||
mystr = `${this.getstrDateLong(myevent.dateTimeStart)}
|
||||
${$t('cal.starttime')} ${this.getstrTime(myevent.dateTimeStart)}
|
||||
${$t('cal.endtime')} ${this.getstrTime(myevent.dateTimeEnd)}`
|
||||
${$t('cal.starttime')} ${this.getstrTime(myevent.dateTimeStart)}`
|
||||
|
||||
if (acapo)
|
||||
mystr += ``
|
||||
|
||||
mystr += `${$t('cal.endtime')} ${this.getstrTime(myevent.dateTimeEnd)}`
|
||||
}
|
||||
} else {
|
||||
if (withhtml) {
|
||||
mystr = `<span class="cal__where-content">${this.getstrDateLong(myevent.dateTimeStart)}</span>
|
||||
<span class="cal__hours-content">${$t('cal.starttime')} ${this.getstrTime(myevent.dateTimeStart)} </span>
|
||||
${$t('cal.enddate')} ${this.getstrDateLong(myevent.dateTimeEnd)}
|
||||
<span class="cal__hours-content">${$t('cal.dalle')} ${this.getstrTime(myevent.dateTimeStart)} </span>`
|
||||
|
||||
if (acapo)
|
||||
mystr += `<br>`
|
||||
|
||||
mystr += `${$t('cal.enddate')} ${this.getstrDateLong(myevent.dateTimeEnd)}
|
||||
<span class="cal__hours-content">${$t('cal.endtime')} ${this.getstrTime(myevent.dateTimeEnd)} </span>`
|
||||
} else {
|
||||
mystr = `${this.getstrDateLong(myevent.dateTimeStart)}
|
||||
${$t('cal.starttime')} ${this.getstrTime(myevent.dateTimeStart)}
|
||||
${$t('cal.dalle')} ${this.getstrTime(myevent.dateTimeStart)}
|
||||
${this.getstrDateLong(myevent.dateTimeEnd)}: ${$t('cal.endtime')} ${this.getstrTime(myevent.dateTimeEnd)}`
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user