fix: modal width

This commit is contained in:
Rohit Waghchaure 2021-02-11 14:51:19 +05:30
parent 09794aac9c
commit 1dc2ae4be3
3 changed files with 4 additions and 1 deletions

View file

@ -268,7 +268,7 @@ export default class Grid {
}
refresh(force) {
if (this.frm.setting_dependency) return;
if (this.frm && this.frm.setting_dependency) return;
this.data = this.get_data();

View file

@ -35,6 +35,8 @@ frappe.ui.Dialog = class Dialog extends frappe.ui.FieldGroup {
$(this.wrapper).addClass("modal-sm");
else if (this.size == "large" )
$(this.wrapper).addClass("modal-lg");
else if (this.size == "full" )
$(this.wrapper).addClass("modal-xl");
this.make_head();
this.modal_body = this.$wrapper.find(".modal-body");

View file

@ -73,6 +73,7 @@ def get_safe_globals():
format_date=frappe.utils.data.global_date_format,
form_dict=getattr(frappe.local, 'form_dict', {}),
bold=frappe.bold,
copy_doc=frappe.copy_doc,
get_meta=frappe.get_meta,
get_doc=frappe.get_doc,