From: Jan Schneider Date: Mon, 29 Nov 2010 15:01:00 +0000 (+0100) Subject: Don't try to call js, if not passed back. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5e087de40452b9898207c0663f2c126c876e0063;p=horde.git Don't try to call js, if not passed back. --- diff --git a/imp/js/mobile.js b/imp/js/mobile.js index 4a101ea4b..b45e0c4b3 100644 --- a/imp/js/mobile.js +++ b/imp/js/mobile.js @@ -136,9 +136,11 @@ var ImpMobile = { $('#imp-message-date').text(header.value); } }); - $.each(data.js, function(k, js) { - $.globalEval(js); - }); + if (data.js) { + $.each(data.js, function(k, js) { + $.globalEval(js); + }); + } } },