From 3a8dacd7104814b506940ca7000e761793314fbe Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 10 Feb 2014 10:25:09 +0000 Subject: [PATCH] fix javascript error on click on .ics attachments --- mail/js/app.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index e78848d6e9..01807c393e 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -1594,18 +1594,18 @@ app.classes.mail = AppJS.extend( { windowName = 'maildisplayEvent_'+mailid+'_'+attgrid.partID; reg2 = egw.link_get_registry('calendar'); - if (typeof app_registry['view'] != 'undefined' && typeof app_registry['view_popup'] != 'undefined' ) + if (typeof reg2['view'] != 'undefined' && typeof reg2['view_popup'] != 'undefined' ) { - reg = app_registry['view_popup']; + reg = reg2['view_popup']; } } if (attgrid.type.toUpperCase()=='TEXT/X-VCARD' || attgrid.type.toUpperCase()=='TEXT/VCARD') { windowName = 'maildisplayContact_'+mailid+'_'+attgrid.partID; reg2 = egw.link_get_registry('addressbook'); - if (typeof app_registry['add'] != 'undefined' && typeof app_registry['add_popup'] != 'undefined' ) + if (typeof reg2['add'] != 'undefined' && typeof reg2['add_popup'] != 'undefined' ) { - reg = app_registry['add_popup']; + reg = reg2['add_popup']; } } var w_h =reg.split('x'); @@ -1685,18 +1685,18 @@ app.classes.mail = AppJS.extend( { windowName = 'maildisplayEvent_'+attgrid.file.replace(/\//g,"_"); reg2 = egw.link_get_registry('calendar'); - if (typeof app_registry['view'] != 'undefined' && typeof app_registry['view_popup'] != 'undefined' ) + if (typeof reg2['view'] != 'undefined' && typeof reg2['view_popup'] != 'undefined' ) { - reg = app_registry['view_popup']; + reg = reg2['view_popup']; } } if (attgrid.type.toUpperCase()=='TEXT/X-VCARD' || attgrid.type.toUpperCase()=='TEXT/VCARD') { windowName = 'maildisplayContact_'+attgrid.file.replace(/\//g,"_"); reg2 = egw.link_get_registry('addressbook'); - if (typeof app_registry['add'] != 'undefined' && typeof app_registry['add_popup'] != 'undefined' ) + if (typeof reg2['add'] != 'undefined' && typeof reg2['add_popup'] != 'undefined' ) { - reg = app_registry['add_popup']; + reg = reg2['add_popup']; } } var w_h =reg.split('x');