Skip to content

Commit

Permalink
JS - product review/reservation move to the common file
Browse files Browse the repository at this point in the history
  • Loading branch information
KrzysztofPajak committed Sep 12, 2021
1 parent 23d47e4 commit fea0c05
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 431 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@model ProductReviewsModel
@using Grand.Web.Common.Themes
@inject IPageHeadBuilder pagebuilder
<script asp-location="Footer" src="/theme/script/product.reviews.js"></script>

<div class="mb-3">
<a class="btn btn-info" href="@Url.RouteUrl("ProductReviews", new { productId = Model.ProductId })">@Loc["Reviews.Overview.AddNew"]</a>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/Web/Grand.Web/Views/Product/ProductReviews.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
@inject IPageHeadBuilder pagebuilder
@inject IWorkContext workContext

<script asp-location="Footer" src="/theme/script/product.reviews.js"></script>
@{
Layout = "_SingleColumn";

Expand Down
1 change: 0 additions & 1 deletion src/Web/Grand.Web/Views/Shared/Head.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@

<script src="/theme/script/public.common.js"></script>
<script src="/theme/script/public.axios.js"></script>
<script src="/theme/script/public.reservation.js"></script>

<script asp-location="Footer" asp-src="/theme/script/app.js"></script>

Expand Down
48 changes: 0 additions & 48 deletions src/Web/Grand.Web/wwwroot/theme/script/product.reviews.js

This file was deleted.

0 comments on commit fea0c05

Please sign in to comment.