Make sure only fall into et2 specific reload for egw_refresh when the etemplate2 object has value

This commit is contained in:
Hadi Nategh 2013-11-19 08:36:08 +00:00
parent d8f2661a27
commit 74d0797904

View File

@ -236,7 +236,7 @@ function egw_refresh(_msg, _app, _id, _type, _targetapp, _replace, _with, _msg_t
} }
// etemplate2 specific to avoid reloading whole page // etemplate2 specific to avoid reloading whole page
if(typeof etemplate2 != "undefined" && etemplate2.getByApplication) if(typeof etemplate2 != "undefined" && etemplate2.getByApplication && etemplate2.getByApplication(_app).hasOwnProperty())
{ {
var et2 = etemplate2.getByApplication(_app); var et2 = etemplate2.getByApplication(_app);
for(var i = 0; i < et2.length; i++) for(var i = 0; i < et2.length; i++)