seller api img

This commit is contained in:
Kerim 2023-08-30 18:00:25 +05:00
parent 82b512e049
commit 370ca1f91f
2 changed files with 4 additions and 3 deletions

View File

@ -16,5 +16,5 @@ function onStart() {
{% if type == 'add' %}
{% partial "seller/prod-create" %}
{% else %}
{% partial "seller/prod-update" %}
{% endif %}
{% partial "seller/prod-update" id=id %}
{% endif %}

View File

@ -157,6 +157,7 @@
var product = data.data;
// $("input[name='images[files][]']").val(product.images[0].original_image_url);
// $("select[name='status']").val(product.status);
$("#product_status").html(`
<option value="1" `+ (product.status == 1 ? `selected` : ``) + `>{{'product.enable'|_}}</option>
@ -168,7 +169,7 @@
`);
$("div.product_featured select").val(product.featured);
$("input[name='images[files][]']").val(product.images[0].original_image_url);
// $("#product_featured select").val(product.featured).change();
// $('#product_featured option[value='+product.featured+']').attr('selected','selected');
$("input[name='name']").val(product.name);