fix: Remove cart.js
from erpnext-web bundle
- Due to it being in the bundle, controls bundle was required for Dialogs used in cart - But this is exclusively used in `cart.html` - It has no reason to load and break the login page - Moved it back to where the html is, it is now back to being tightly coupled with its html
This commit is contained in:
parent
e652ab5f05
commit
017a882f90
@ -1,7 +1,6 @@
|
|||||||
import "./website_utils";
|
import "./website_utils";
|
||||||
import "./wishlist";
|
import "./wishlist";
|
||||||
import "./shopping_cart";
|
import "./shopping_cart";
|
||||||
import "./cart";
|
|
||||||
import "./customer_reviews";
|
import "./customer_reviews";
|
||||||
import "../../e_commerce/product_ui/list";
|
import "../../e_commerce/product_ui/list";
|
||||||
import "../../e_commerce/product_ui/views";
|
import "../../e_commerce/product_ui/views";
|
||||||
|
@ -127,4 +127,6 @@
|
|||||||
{% block base_scripts %}
|
{% block base_scripts %}
|
||||||
<!-- js should be loaded in body! -->
|
<!-- js should be loaded in body! -->
|
||||||
{{ include_script("frappe-web.bundle.js") }}
|
{{ include_script("frappe-web.bundle.js") }}
|
||||||
|
{{ include_script("controls.bundle.js") }}
|
||||||
|
{{ include_script("dialog.bundle.js") }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||||
// License: GNU General Public License v3. See license.txt
|
// License: GNU General Public License v3. See license.txt
|
||||||
import "../../../../frappe/frappe/public/js/controls.bundle";
|
|
||||||
import "../../../../frappe/frappe/public/js/dialog.bundle";
|
|
||||||
// js inside blog page
|
|
||||||
|
|
||||||
// shopping cart
|
// JS exclusive to /cart page
|
||||||
frappe.provide("erpnext.e_commerce.shopping_cart");
|
frappe.provide("erpnext.e_commerce.shopping_cart");
|
||||||
var shopping_cart = erpnext.e_commerce.shopping_cart;
|
var shopping_cart = erpnext.e_commerce.shopping_cart;
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user