diff --git a/frappe/hooks.py b/frappe/hooks.py
index f5ce28c7a8..fa1b45f298 100755
--- a/frappe/hooks.py
+++ b/frappe/hooks.py
@@ -42,9 +42,7 @@ app_include_css = [
]
web_include_js = [
- "website_script.js",
- "assets/js/control.min.js",
- "assets/js/dialog.min.js"
+ "website_script.js"
]
bootstrap = "assets/frappe/css/bootstrap.css"
diff --git a/frappe/public/build.json b/frappe/public/build.json
index 8b1690a53f..71edc97e9c 100755
--- a/frappe/public/build.json
+++ b/frappe/public/build.json
@@ -75,7 +75,6 @@
],
"js/dialog.min.js": [
"public/js/frappe/dom.js",
- "public/js/frappe/ui/modal.html",
"public/js/frappe/form/formatters.js",
"public/js/frappe/form/layout.js",
@@ -142,7 +141,6 @@
"public/js/frappe/assets.js",
"public/js/frappe/format.js",
"public/js/frappe/form/formatters.js",
- "public/js/frappe/ui/modal.html",
"public/js/frappe/dom.js",
"public/js/frappe/ui/messages.js",
"public/js/frappe/ui/keyboard.js",
diff --git a/frappe/public/js/frappe/dom.js b/frappe/public/js/frappe/dom.js
index b5b264dfd9..4f6eabb5b2 100644
--- a/frappe/public/js/frappe/dom.js
+++ b/frappe/public/js/frappe/dom.js
@@ -245,7 +245,32 @@ frappe.scrub = function(text) {
};
frappe.get_modal = function(title, content) {
- return $(frappe.render_template("modal", {title:title, content:content})).appendTo(document.body);
+ return $(`
`)
};
frappe.is_online = function() {
diff --git a/frappe/public/js/frappe/ui/dialog.js b/frappe/public/js/frappe/ui/dialog.js
index 4daa49737a..6d104adeaf 100644
--- a/frappe/public/js/frappe/ui/dialog.js
+++ b/frappe/public/js/frappe/ui/dialog.js
@@ -1,4 +1,5 @@
import './field_group';
+import '../dom';
frappe.provide('frappe.ui');
diff --git a/frappe/public/js/frappe/ui/messages.js b/frappe/public/js/frappe/ui/messages.js
index da57996057..63c0ba19a1 100644
--- a/frappe/public/js/frappe/ui/messages.js
+++ b/frappe/public/js/frappe/ui/messages.js
@@ -180,13 +180,7 @@ frappe.msgprint = function(msg, title) {
return msg_dialog;
}
-// Proxy for frappe.msgprint
-Object.defineProperty(window, 'msgprint', {
- get: function() {
- console.warn('Please use `frappe.msgprint` instead of `msgprint`. It will be deprecated soon.');
- return frappe.msgprint;
- }
-});
+window.msgprint = frappe.msgprint;
frappe.hide_msgprint = function(instant) {
// clear msgprint
diff --git a/frappe/public/js/frappe/ui/modal.html b/frappe/public/js/frappe/ui/modal.html
deleted file mode 100644
index 57775068ee..0000000000
--- a/frappe/public/js/frappe/ui/modal.html
+++ /dev/null
@@ -1,26 +0,0 @@
-
diff --git a/frappe/website/doctype/web_form/templates/web_form.html b/frappe/website/doctype/web_form/templates/web_form.html
index a36f5b138b..1b8c9aadc7 100644
--- a/frappe/website/doctype/web_form/templates/web_form.html
+++ b/frappe/website/doctype/web_form/templates/web_form.html
@@ -6,6 +6,7 @@
{{ _(title) }}
{% endblock %}
+
{% block breadcrumbs %}
{% if has_header and login_required %}
{% include "templates/includes/breadcrumbs.html" %}
@@ -162,6 +163,8 @@
{% endblock %}
{% block script %}
+
+