diff --git a/core/doctype/docfield/docfield.txt b/core/doctype/docfield/docfield.txt index 2c6afa4032..955891c30e 100644 --- a/core/doctype/docfield/docfield.txt +++ b/core/doctype/docfield/docfield.txt @@ -2,7 +2,7 @@ { "creation": "2013-02-22 01:27:33", "docstatus": 0, - "modified": "2013-03-07 07:03:20", + "modified": "2013-07-03 10:03:56", "modified_by": "Administrator", "owner": "Administrator" }, @@ -94,6 +94,16 @@ "search_index": 0, "width": "50px" }, + { + "doctype": "DocField", + "fieldname": "description", + "fieldtype": "Text", + "label": "Description", + "oldfieldname": "description", + "oldfieldtype": "Text", + "print_width": "300px", + "width": "300px" + }, { "default": "0", "doctype": "DocField", @@ -241,16 +251,6 @@ "search_index": 0, "width": "50px" }, - { - "doctype": "DocField", - "fieldname": "description", - "fieldtype": "Text", - "label": "Description", - "oldfieldname": "description", - "oldfieldtype": "Text", - "print_width": "300px", - "width": "300px" - }, { "doctype": "DocField", "fieldname": "oldfieldname", diff --git a/core/doctype/doctype/doctype.js b/core/doctype/doctype/doctype.js index 8fde2a34e9..579e2d7b2a 100644 --- a/core/doctype/doctype/doctype.js +++ b/core/doctype/doctype/doctype.js @@ -23,6 +23,13 @@ // ------------- // Menu Display // ------------- + +$(cur_frm.wrapper).on("grid-row-render", function(e, grid_row) { + if(grid_row.doc && grid_row.doc.fieldtype=="Section Break") { + $(grid_row.row).css({"font-weight": "bold"}); + } +}) + cur_frm.cscript.allow_attach = function(doc, cdt, cdn) { if(doc.allow_attach) { unhide_field('max_attachments'); diff --git a/public/js/wn/form/grid.js b/public/js/wn/form/grid.js index 126eceb044..714104ea53 100644 --- a/public/js/wn/form/grid.js +++ b/public/js/wn/form/grid.js @@ -273,6 +273,8 @@ wn.ui.form.GridRow = Class.extend({ $col.css({"text-align": "right"}) } }); + + $(this.frm.wrapper).trigger("grid-row-render", [this]); }, toggle_view: function(show, callback) { this.doc = locals[this.doc.doctype][this.doc.name]; diff --git a/public/js/wn/form/layout.js b/public/js/wn/form/layout.js index cffb0574e5..2a13815bac 100644 --- a/public/js/wn/form/layout.js +++ b/public/js/wn/form/layout.js @@ -78,8 +78,11 @@ wn.ui.form.Layout = Class.extend({ if(df) { if(df.label) { this.labelled_section_count++; - $('