mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
related to #1465 added line constructor
This commit is contained in:
committed by
plegall
parent
34100c049c
commit
981000d9ce
+1
-1
@@ -439,7 +439,7 @@ SELECT
|
||||
}
|
||||
}
|
||||
|
||||
// Put in ajax response
|
||||
// Put in ajax response done
|
||||
$template->append(
|
||||
'search_results',
|
||||
array(
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user