chore: Add placeholder image
This commit is contained in:
parent
70b164e7dd
commit
55d2bf0ff9
BIN
erpnext/www/all-products/img/placeholder.png
Normal file
BIN
erpnext/www/all-products/img/placeholder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
@ -8,7 +8,7 @@ function populateResults(data) {
|
|||||||
html = ""
|
html = ""
|
||||||
for (let res of data.message) {
|
for (let res of data.message) {
|
||||||
html += `<li class="list-group-item list-group-item-action">
|
html += `<li class="list-group-item list-group-item-action">
|
||||||
<img class="item-thumb" src="${res.thumbnail || ''}" />
|
<img class="item-thumb" src="${res.thumbnail || 'img/placeholder.png'}" />
|
||||||
<a href="/${res.route}">${res.web_item_name}</a>
|
<a href="/${res.route}">${res.web_item_name}</a>
|
||||||
</li>`
|
</li>`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user