fix: modal width
This commit is contained in:
parent
09794aac9c
commit
1dc2ae4be3
3 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue