From 5e087de40452b9898207c0663f2c126c876e0063 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 29 Nov 2010 16:01:00 +0100 Subject: [PATCH] Don't try to call js, if not passed back. --- imp/js/mobile.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); + }); + } } }, -- 2.11.0