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:
Suraj Shetty 2022-02-03 20:06:24 +05:30
parent 6f2c9c692c
commit e652ab5f05
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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 %}