fix problem with undefined var w_h in javascript

This commit is contained in:
Klaus Leithoff 2014-10-16 09:50:16 +00:00
parent 47bf4d0824
commit e2b160aede

View File

@ -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');
}
}
}