fix: Load control & dialog assets with cart.js
Previously, control & dialog assets were getting loaded only on visiting "/cart", but since cart.js sets up various events on homepage, dialog related assets are required up-front.
This commit is contained in:
parent
6f2c9c692c
commit
e652ab5f05
@ -1,6 +1,7 @@
|
||||
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
||||
// 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
|
||||
|
@ -127,6 +127,4 @@
|
||||
{% block base_scripts %}
|
||||
<!-- js should be loaded in body! -->
|
||||
{{ include_script("frappe-web.bundle.js") }}
|
||||
{{ include_script("controls.bundle.js") }}
|
||||
{{ include_script("dialog.bundle.js") }}
|
||||
{% endblock %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user