freeze screen while posting and login
diff --git a/erpnext/crm/doctype/linkedin_settings/linkedin_settings.js b/erpnext/crm/doctype/linkedin_settings/linkedin_settings.js
index b05b602..50b98e9 100644
--- a/erpnext/crm/doctype/linkedin_settings/linkedin_settings.js
+++ b/erpnext/crm/doctype/linkedin_settings/linkedin_settings.js
@@ -55,6 +55,7 @@
},
login: function(frm){
if (frm.doc.consumer_key && frm.doc.consumer_secret){
+ frappe.dom.freeze();
frappe.call({
doc: frm.doc,
method: "get_authorization_url",
diff --git a/erpnext/crm/doctype/social_media_post/social_media_post.js b/erpnext/crm/doctype/social_media_post/social_media_post.js
index c2a17d8..3a14f2d 100644
--- a/erpnext/crm/doctype/social_media_post/social_media_post.js
+++ b/erpnext/crm/doctype/social_media_post/social_media_post.js
@@ -51,6 +51,7 @@
});
}
var post = function(frm){
+ frappe.dom.freeze();
frappe.call({
method: "erpnext.crm.doctype.social_media_post.social_media_post.publish",
args: {
@@ -59,6 +60,7 @@
},
callback: function(r) {
frm.reload_doc();
+ frappe.dom.unfreeze();
}
})
diff --git a/erpnext/crm/doctype/twitter_settings/twitter_settings.js b/erpnext/crm/doctype/twitter_settings/twitter_settings.js
index eae2520..8f9c419 100644
--- a/erpnext/crm/doctype/twitter_settings/twitter_settings.js
+++ b/erpnext/crm/doctype/twitter_settings/twitter_settings.js
@@ -36,6 +36,7 @@
},
login: function(frm){
if (frm.doc.consumer_key && frm.doc.consumer_secret){
+ frappe.dom.freeze();
frappe.call({
doc: frm.doc,
method: "get_authorize_url",