- fixed bug with item route
- fixed visual bug with ids in item view
This commit is contained in:
parent
8d954052f2
commit
c50aa8990c
@ -11,6 +11,9 @@ async function get(req: Request, res: Response) {
|
|||||||
if (req.query.order === undefined) {
|
if (req.query.order === undefined) {
|
||||||
req.query.order = 'asc';
|
req.query.order = 'asc';
|
||||||
}
|
}
|
||||||
|
if(req.query.search === undefined) {
|
||||||
|
req.query.search = '';
|
||||||
|
}
|
||||||
|
|
||||||
if (req.query.id) {
|
if (req.query.id) {
|
||||||
// Check if number is a valid integer
|
// Check if number is a valid integer
|
||||||
|
@ -59,8 +59,11 @@ function dataResponseHandler(res) {
|
|||||||
item.SKU = `<p data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="ID: ${item.id}">${item.SKU}</p>`
|
item.SKU = `<p data-bs-toggle="tooltip" data-bs-placement="left" data-bs-title="ID: ${item.id}">${item.SKU}</p>`
|
||||||
});
|
});
|
||||||
///// --------------------------------- /////
|
///// --------------------------------- /////
|
||||||
|
setTimeout(() => {
|
||||||
|
activateTooltips();
|
||||||
|
}, 200);
|
||||||
return {"rows": json, total: total, totalNotFiltered: totalNotFiltered, totalRows: total};
|
return {"rows": json, total: total, totalNotFiltered: totalNotFiltered, totalRows: total};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loadPageData()
|
loadPageData()
|
||||||
|
Loading…
Reference in New Issue
Block a user