瀏覽代碼

fix: Custom field highlight goes away when change grid page

version-14
Shariq Ansari 3 年之前
父節點
當前提交
d83bdfe119
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      frappe/custom/doctype/customize_form/customize_form.js

+ 4
- 0
frappe/custom/doctype/customize_form/customize_form.js 查看文件

@@ -49,6 +49,10 @@ frappe.ui.form.on("Customize Form", {
if (grid_row.doc && grid_row.doc.fieldtype == "Section Break") { if (grid_row.doc && grid_row.doc.fieldtype == "Section Break") {
$(grid_row.row).css({ "font-weight": "bold" }); $(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) { $(frm.wrapper).on("grid-make-sortable", function(e, frm) {


Loading…
取消
儲存