Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Admin panel - update view multipicture

KrzysztofPajak8574f62f670f
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/MultiPicture.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/MultiPicture.cshtml
index 6c233d301..ff275a91e 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/MultiPicture.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Shared/EditorTemplates/MultiPicture.cshtml
@@ -65,8 +65,7 @@
acceptFiles: 'image/*',
}
}).on("complete", function(event, id, name, responseJSON, xhr) {
- if (responseJSON.success) {
- $("#@(clientId + "image")").append("<img src='" + responseJSON.data[0].Item1 + "'/>");
+ if (responseJSON.success) {
$("#@click").click();
}
else {