From: Moritz Bunkus Date: Tue, 24 Jan 2017 13:49:14 +0000 (+0100) Subject: ClientJS: Warnungen fixen X-Git-Tag: release-3.5.4~1663 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ddc0dab80dbab5a529a071d36d37982b4175b6c3;p=kivitendo-erp.git ClientJS: Warnungen fixen --- diff --git a/js/client_js.js b/js/client_js.js index fecbcbcc0..8be5676e4 100644 --- a/js/client_js.js +++ b/js/client_js.js @@ -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) { diff --git a/scripts/generate_client_js_actions.tpl b/scripts/generate_client_js_actions.tpl index 274076a7a..467344fbd 100644 --- a/scripts/generate_client_js_actions.tpl +++ b/scripts/generate_client_js_actions.tpl @@ -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) {