From 46fc24113859710fe5d39758e74d7c8696956591 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 16 Oct 2014 09:52:15 +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 0ac1d25824..db392f1259 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -2561,6 +2561,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')) @@ -2588,7 +2592,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'); } } } @@ -2606,6 +2610,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')) @@ -2633,7 +2640,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'); } } }