related to #1465 added line constructor

This commit is contained in:
Matthieu Leproux
2021-08-25 15:39:27 +02:00
committed by plegall
parent 34100c049c
commit 981000d9ce
2 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -439,7 +439,7 @@ SELECT
}
}
// Put in ajax response
// Put in ajax response done
$template->append(
'search_results',
array(
+12 -2
View File
@@ -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);
}
})