diff --git a/js/functions.js b/js/functions.js index ea5cebea45..a0f339a7f3 100644 --- a/js/functions.js +++ b/js/functions.js @@ -4141,7 +4141,7 @@ Functions.toggleButton = function ($obj) { .animate({ 'left': operator + move + 'px' }, function () { $container.removeClass('isActive'); }); - /* eslint no-eval: "warn" */ + // eslint-disable-next-line no-eval eval(callback); } else { Functions.ajaxShowMessage(data.error, false); diff --git a/js/gis_data_editor.js b/js/gis_data_editor.js index 7840f25eec..dc4eca998a 100644 --- a/js/gis_data_editor.js +++ b/js/gis_data_editor.js @@ -251,7 +251,7 @@ AJAX.registerOnload('gis_data_editor.js', function () { $('#placeholder').empty().removeClass('hasSVG').html(data.visualization); $('#openlayersmap').empty(); /* TODO: the gis_data_editor should rather return JSON than JS code to eval */ - /* eslint no-eval: "warn" */ + // eslint-disable-next-line no-eval eval(data.openLayers); initGISEditorVisualization(); } else {