use egw().open abstraction to open view popup

This commit is contained in:
Klaus Leithoff 2013-06-06 09:14:14 +00:00
parent 6852d0807d
commit c7e763b705
2 changed files with 4 additions and 5 deletions

View File

@ -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',
),

View File

@ -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 );
},
/**