freeze screen while posting and login

This commit is contained in:
Anupam K 2020-04-25 00:35:26 +05:30
parent e01723e360
commit 524eb6ce9b
3 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,7 @@ frappe.ui.form.on('LinkedIn Settings', {
},
login: function(frm){
if (frm.doc.consumer_key && frm.doc.consumer_secret){
frappe.dom.freeze();
frappe.call({
doc: frm.doc,
method: "get_authorization_url",

View File

@ -51,6 +51,7 @@ var add_post_btn = function(frm){
});
}
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 @@ var post = function(frm){
},
callback: function(r) {
frm.reload_doc();
frappe.dom.unfreeze();
}
})

View File

@ -36,6 +36,7 @@ frappe.ui.form.on('Twitter Settings', {
},
login: function(frm){
if (frm.doc.consumer_key && frm.doc.consumer_secret){
frappe.dom.freeze();
frappe.call({
doc: frm.doc,
method: "get_authorize_url",