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.

Removed unused script.

DanielŻuławski64c40deacf45
diff --git a/src/Web/Grand.Web/wwwroot/theme/script/public.common.js b/src/Web/Grand.Web/wwwroot/theme/script/public.common.js
index 30a646842..68b04b38c 100644
--- a/src/Web/Grand.Web/wwwroot/theme/script/public.common.js
+++ b/src/Web/Grand.Web/wwwroot/theme/script/public.common.js
@@ -89,47 +89,6 @@ function displayPopupNewsletterCategory(html) {
});
}
-function displayPopupAddToCart(html) {
- document.querySelector('.modal-place').innerHTML = html;
- new Vue({
- el: '#ModalAddToCart',
- data: {
- template: null,
- darkMode: false,
- },
- render: function (createElement) {
- if (!this.template) {
- return createElement('b-overlay', {
- attrs: { show: 'true' }
- });
- } else {
- return this.template();
- }
- },
- methods: {
- showModal: function () {
- this.$refs['ModalAddToCart'].show()
- },
- onShown: function () {
- runScripts(document.querySelector('.script-tag'))
- }
- },
- watch: {
- darkMode: function (newValue) {
- localStorage.darkMode = newValue;
- }
- },
- mounted: function () {
- var self = this;
- self.template = Vue.compile(html).render;
- if (localStorage.darkMode == "true") this.darkMode = true;
- },
- updated: function () {
- this.showModal();
- }
- });
-}
-
function displayPopupQuickView(html) {
document.querySelector('.modal-place').innerHTML = html;
new Vue({