From acd3ebad8a554f0cacf540bcb6aa7a8122eb1832 Mon Sep 17 00:00:00 2001 From: Valentin <valentin.pocotilenco> Date: Mon, 18 Oct 2021 19:42:10 +0300 Subject: [PATCH] clean comment --- web/eccs.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web/eccs.js b/web/eccs.js index 2b8f8aa..1bb7d02 100644 --- a/web/eccs.js +++ b/web/eccs.js @@ -178,8 +178,7 @@ function getPastResults() { let iterator = moment(dateFrom); let dataSourceIterator = baseUrl + "/eccs/api/eccsresults?eccsdt=1&date="; while (iterator.isSameOrBefore(moment(dateTo), 'day')) { - //$.get(dataSourceIterator + iterator.format('YYYY-MM-DD'), // <<< PROD - $.get('http://localhost/eccs/text_' + iterator.format('YYYY-MM-DD') + '.json', /// <<< TEST + $.get(dataSourceIterator + iterator.format('YYYY-MM-DD'), function(data) { table.rows.add(data).draw(); }); @@ -326,10 +325,7 @@ $(document).ready(function() { }, { "data": "entityID" }, { - "data": "registrationAuthority", - "render": function(data, type, row, meta) { - return '<a href="' + row.registrationAuthority + ' target="_blank"">' + data + '</a>'; - } + "data": "registrationAuthority" }, { "data": "date", -- GitLab