mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
use egw().open abstraction to open view popup
This commit is contained in:
parent
6852d0807d
commit
c7e763b705
@ -78,9 +78,11 @@ class mail_hooks
|
||||
{
|
||||
return array(
|
||||
'view' => array(
|
||||
// 'menuaction' => 'mail.uidisplay.display',
|
||||
'menuaction' => 'mail.mail_ui.displayMessage',
|
||||
),
|
||||
'view_id' => 'id',
|
||||
'view_popup' => '850xegw_getWindowOuterHeight()',
|
||||
'view_list' => 'mail.mail_ui.index',
|
||||
'add' => array(
|
||||
// 'menuaction' => 'mail.uicompose.compose',
|
||||
),
|
||||
|
@ -89,10 +89,7 @@ app.mail = AppJS.extend(
|
||||
var dataElem = egw.dataGetUIDdata(_id);
|
||||
var subject = dataElem.data.subject;
|
||||
//alert('Open Message:'+_id+' '+subject);
|
||||
egw().open_link(egw.link('/index.php', {
|
||||
menuaction: 'mail.mail_ui.displayMessage',
|
||||
id: _id,
|
||||
}), 'view'+_id, '495x425');
|
||||
egw().open( _id,'mail','view',null,'view'+_id );
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user