diff --git a/admin/history.php b/admin/history.php index 436a4953f..36e1b4282 100644 --- a/admin/history.php +++ b/admin/history.php @@ -439,7 +439,7 @@ SELECT } } - // Put in ajax response + // Put in ajax response done $template->append( 'search_results', array( diff --git a/admin/themes/default/js/history.js b/admin/themes/default/js/history.js index 707f7ebd7..90bca5d66 100644 --- a/admin/themes/default/js/history.js +++ b/admin/themes/default/js/history.js @@ -30,9 +30,14 @@ $(document).ready(() => { ip: dataObj['ip'], display_thumbnail: dataObj['display_thumbnail'], }, - success: function (data) { + success: function (raw_data) { + data = raw_data.result; console.log("RESULTS"); console.log(data); + + data.forEach(line => { + lineConstructor(line) + }); }, error: function (e) { console.log("Something went wrong: " + e); @@ -40,5 +45,10 @@ $(document).ready(() => { }) console.log(dataObj); - }) + }); + + function lineConstructor(line) { + // console.log(line); + } + }) \ No newline at end of file