Browse Source

fix: Custom field highlight goes away when change grid page

version-14
Shariq Ansari 3 years ago
parent
commit
d83bdfe119
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      frappe/custom/doctype/customize_form/customize_form.js

+ 4
- 0
frappe/custom/doctype/customize_form/customize_form.js View File

@@ -49,6 +49,10 @@ frappe.ui.form.on("Customize Form", {
if (grid_row.doc && grid_row.doc.fieldtype == "Section Break") {
$(grid_row.row).css({ "font-weight": "bold" });
}

if (grid_row.doc.is_custom_field && !grid_row.row.hasClass('highlight')) {
grid_row.row.addClass("highlight");
}
});

$(frm.wrapper).on("grid-make-sortable", function(e, frm) {


Loading…
Cancel
Save