From e2b160aedeba0fa20ef278739f8d1e7639ce194b Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 16 Oct 2014 09:50:16 +0000 Subject: [PATCH] fix problem with undefined var w_h in javascript --- mail/js/app.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 170c425035..f573a03dd3 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -2577,6 +2577,10 @@ app.classes.mail = AppJS.extend( */ mail_infolog: function(_action, _elems) { + //define/preset w_h in case something fails + var reg = '750x580'; + var w_h =reg.split('x'); + if (typeof _elems == 'undefined' || _elems.length==0) { if (this.et2.getArrayMgr("content").getEntry('mail_id')) @@ -2604,7 +2608,7 @@ app.classes.mail = AppJS.extend( } if (typeof app_registry['edit'] != 'undefined' && typeof app_registry['edit_popup'] != 'undefined' ) { - var w_h =app_registry['edit_popup'].split('x'); + w_h =app_registry['edit_popup'].split('x'); } } } @@ -2622,6 +2626,9 @@ app.classes.mail = AppJS.extend( */ mail_tracker: function(_action, _elems) { + //define/preset w_h in case something fails + var reg = '780x535'; + var w_h =reg.split('x'); if (typeof _elems == 'undefined' || _elems.length==0) { if (this.et2.getArrayMgr("content").getEntry('mail_id')) @@ -2649,7 +2656,7 @@ app.classes.mail = AppJS.extend( } if (typeof app_registry['add'] != 'undefined' && typeof app_registry['add_popup'] != 'undefined' ) { - var w_h =app_registry['add_popup'].split('x'); + w_h =app_registry['add_popup'].split('x'); } } }