In JS eval() context, function definition is not allowed. Need actual statements...
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 19 Aug 2009 19:06:20 +0000 (13:06 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 19 Aug 2009 19:06:20 +0000 (13:06 -0600)
imp/lib/IMP.php

index 4f4d84f..1b65c94 100644 (file)
@@ -1222,7 +1222,7 @@ class IMP
         }
 
         $js_params = array(
-            'action' => $action ? 'function() {' . $action . '}' : '',
+            'action' => $action,
             'uri' => Horde::applicationUrl('ajax.php', true, -1) . '/' . $type,
             'params' => $params,
             'text' => $text,