mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Add missing app.js part a139d1e7d2
This commit is contained in:
parent
4731128d50
commit
32392ea0e3
@ -253,6 +253,34 @@ app.classes.mail = AppJS.extend(
|
||||
// Show vacation notice on load for the current profile (if not called by mail_searchtype_change())
|
||||
var alreadyrefreshed = this.mail_searchtype_change();
|
||||
if (!alreadyrefreshed) this.mail_callRefreshVacationNotice();
|
||||
|
||||
let splitter = this.et2.getWidgetById('mailSplitter');
|
||||
let composeBtn = this.et2.getWidgetById('button[mailcreate]');
|
||||
let composeBtnLabel = composeBtn.label;
|
||||
if (splitter && !splitter.vertical)
|
||||
{
|
||||
splitter.addEventListener('sl-reposition', function(){
|
||||
if (this.position < 44)
|
||||
{
|
||||
this.classList.add('limitted');
|
||||
if (this.position < 30)
|
||||
{
|
||||
this.classList.add('squeezed');
|
||||
composeBtn.label = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
this.classList.remove('squeezed');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.classList.remove('limitted');
|
||||
this.classList.remove('squeezed');
|
||||
composeBtn.label = composeBtnLabel;
|
||||
}
|
||||
});
|
||||
}
|
||||
break;
|
||||
case 'mail.display':
|
||||
var self = this;
|
||||
|
Loading…
Reference in New Issue
Block a user