kivi.parse_amount: bei ungültigen mathematischen Ausdrücken 0 zurückliefern
[kivitendo-erp.git] / js / client_js.js
index 3f2bde5..8be5676 100644 (file)
@@ -44,8 +44,10 @@ ns.eval_json_result = function(data) {
       $('#flash_' + category + '_detail').empty();
     });
   }
-  if ((data.js || '') != '')
+  if ((data.js || '') !== '')
+    // jshint -W061
     eval(data.js);
+    // jshint +W061
 
   if (data.eval_actions)
     $(data.eval_actions).each(function(idx, action) {
@@ -116,7 +118,7 @@ ns.eval_json_result = function(data) {
       else if (action[0] == 'dialog:close')         $(action[1]).dialog('close');
 
       // ## jQuery Form plugin ##
-      else if (action[0] == 'ajaxForm')             pattern: $(action[1]).ajaxForm({ success: eval_json_result });
+      else if (action[0] == 'ajaxForm')             $(action[1]).ajaxForm({ success: eval_json_result });
 
       // ## jstree plugin ##