mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-18 04:20:05 +02:00
* Mail - add a new preference for preview pane to stay there, even when no mail is selected for previewing
This commit is contained in:
@@ -167,7 +167,7 @@ app.classes.mail = AppJS.extend(
|
||||
});
|
||||
var nm = this.et2.getWidgetById(this.nm_index);
|
||||
this.mail_isMainWindow = true;
|
||||
this.mail_disablePreviewArea(true);
|
||||
this.mail_disablePreviewArea(this.egw.preference('previewPane', 'mail') !== 'fixed');
|
||||
//Get initial folder status
|
||||
this.mail_refreshFolderStatus(undefined,undefined,false);
|
||||
|
||||
@@ -918,11 +918,26 @@ app.classes.mail = AppJS.extend(
|
||||
}, 50);
|
||||
};
|
||||
|
||||
// Show / hide 'Select something' in preview
|
||||
var blank = this.et2.getWidgetById('blank');
|
||||
if(blank)
|
||||
{
|
||||
blank.set_disabled(true);
|
||||
}
|
||||
if (attachmentArea && typeof _id != 'undefined' && _id !='' && typeof dataElem !== 'undefined')
|
||||
{
|
||||
// If there is content to show recalculate the size
|
||||
set_prev_iframe_top();
|
||||
}
|
||||
else if (this.egw.preference('previewPane', 'mail') == 'fixed')
|
||||
{
|
||||
if(blank)
|
||||
{
|
||||
blank.set_disabled(false);
|
||||
}
|
||||
this.mail_disablePreviewArea(false);
|
||||
if (!egwIsMobile())return;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Leave if we're here and there is nothing selected, too many, or no data
|
||||
|
Reference in New Issue
Block a user