From 370ca1f91f7517071ea9e29bfcf8f9f92649bb96 Mon Sep 17 00:00:00 2001 From: Kerim Date: Wed, 30 Aug 2023 18:00:25 +0500 Subject: [PATCH] seller api img --- themes/nurgul/pages/seller-crud-product.htm | 4 ++-- themes/nurgul/partials/seller/prod-update.htm | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/themes/nurgul/pages/seller-crud-product.htm b/themes/nurgul/pages/seller-crud-product.htm index 5e32117..3d50411 100755 --- a/themes/nurgul/pages/seller-crud-product.htm +++ b/themes/nurgul/pages/seller-crud-product.htm @@ -16,5 +16,5 @@ function onStart() { {% if type == 'add' %} {% partial "seller/prod-create" %} {% else %} - {% partial "seller/prod-update" %} -{% endif %} \ No newline at end of file + {% partial "seller/prod-update" id=id %} +{% endif %} diff --git a/themes/nurgul/partials/seller/prod-update.htm b/themes/nurgul/partials/seller/prod-update.htm index 01b5da1..a382df3 100755 --- a/themes/nurgul/partials/seller/prod-update.htm +++ b/themes/nurgul/partials/seller/prod-update.htm @@ -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(` @@ -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);