* Mail: fix date filter is no longer working in mail's list

This commit is contained in:
hadi 2023-05-15 12:36:25 +02:00
parent 3bd2ee5aad
commit 0fba45d333
3 changed files with 12 additions and 7 deletions

View File

@ -2040,8 +2040,8 @@ app.classes.mail = AppJS.extend(
if (filter && dates)
{
if (this.et2.getWidgetById('startdate') && this.et2.getWidgetById('startdate').get_value()) nm.activeFilters["startdate"] = this.et2.getWidgetById('startdate').date;
if (this.et2.getWidgetById('enddate') && this.et2.getWidgetById('enddate').get_value()) nm.activeFilters["enddate"] = this.et2.getWidgetById('enddate').date;
if (this.et2.getWidgetById('startdate') && this.et2.getWidgetById('startdate').get_value()) nm.activeFilters["startdate"] = this.et2.getWidgetById('startdate').value;
if (this.et2.getWidgetById('enddate') && this.et2.getWidgetById('enddate').get_value()) nm.activeFilters["enddate"] = this.et2.getWidgetById('enddate').value;
}
}
}

View File

@ -1136,3 +1136,8 @@ et2-split#mail-index_mailSplitter.squeezed .mail-index_quotabox{
position: absolute;
}
.attachments et2-dropdown-button[id$="\[actions\]"]{display: inline}
et2-details.mail-index_datefilter::part(base) {
height: var(--sl-input-height-medium);
border-radius: var(--sl-border-radius-small);
}

View File

@ -123,11 +123,11 @@
<et2-description id="nm[vacationnotice]" class="@nm[vacationclass]"></et2-description>
<et2-description id="nm[vacationrange]" class="@nm[vacationrangeclass]"></et2-description>
</et2-details>
<et2-hbox id="mail.index.datefilter" class="mail-index_datefilter">
<et2-details id="mail.index.datefilter" class="mail-index_datefilter" summary="Date..." hoist="true">
<et2-date id="startdate" label="Start" onchange="app.mail.mail_refreshMessageGrid(false,true);"></et2-date>
<et2-date id="enddate" label="End" onchange="app.mail.mail_refreshMessageGrid(false,true);"></et2-date>
</et2-hbox>
</et2-details>
<et2-hbox id="mail.index.quotabox" class="mail-index_quotabox">
<progress id="nm[quotainpercent]" label="@nm[quota]" class="@nm[quotaclass]"/>
</et2-hbox>