From b630ccc8e635de8fed0d56531c0455ceebda01fd Mon Sep 17 00:00:00 2001 From: sokumon Date: Fri, 27 Jun 2025 01:21:33 +0530 Subject: [PATCH] fix: remove newsletter related code --- erpnext/hooks.py | 1 - erpnext/public/js/erpnext-web.bundle.js | 1 - erpnext/public/js/website_utils.js | 14 ------- .../includes/footer/footer_extension.html | 42 ------------------- 4 files changed, 58 deletions(-) delete mode 100644 erpnext/public/js/erpnext-web.bundle.js delete mode 100644 erpnext/public/js/website_utils.js delete mode 100644 erpnext/templates/includes/footer/footer_extension.html diff --git a/erpnext/hooks.py b/erpnext/hooks.py index 17b7993eff7..90395e22b6b 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -24,7 +24,6 @@ develop_version = "15.x.x-develop" app_include_js = "erpnext.bundle.js" app_include_css = "erpnext.bundle.css" -web_include_js = "erpnext-web.bundle.js" web_include_css = "erpnext-web.bundle.css" email_css = "email_erpnext.bundle.css" diff --git a/erpnext/public/js/erpnext-web.bundle.js b/erpnext/public/js/erpnext-web.bundle.js deleted file mode 100644 index 45c6a648ecd..00000000000 --- a/erpnext/public/js/erpnext-web.bundle.js +++ /dev/null @@ -1 +0,0 @@ -import "./website_utils"; diff --git a/erpnext/public/js/website_utils.js b/erpnext/public/js/website_utils.js deleted file mode 100644 index 981899f8744..00000000000 --- a/erpnext/public/js/website_utils.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors -// License: GNU General Public License v3. See license.txt - -if (!window.erpnext) window.erpnext = {}; - -erpnext.subscribe_to_newsletter = function (opts, btn) { - return frappe.call({ - type: "POST", - method: "frappe.email.doctype.newsletter.newsletter.subscribe", - btn: btn, - args: { email: opts.email }, - callback: opts.callback, - }); -}; diff --git a/erpnext/templates/includes/footer/footer_extension.html b/erpnext/templates/includes/footer/footer_extension.html deleted file mode 100644 index 11e0adaa2ee..00000000000 --- a/erpnext/templates/includes/footer/footer_extension.html +++ /dev/null @@ -1,42 +0,0 @@ -{% if not hide_footer_signup %} -
- -
- -
-
- - - -{% endif %}