|
|
@@ -121,8 +121,6 @@ frappe.ui.form.GridRow = Class.extend({ |
|
|
|
if(this.grid_form) { |
|
|
|
this.grid_form.layout && this.grid_form.layout.refresh(this.doc); |
|
|
|
} |
|
|
|
|
|
|
|
this.toggle_check(); |
|
|
|
}, |
|
|
|
render_template: function() { |
|
|
|
this.set_row_index(); |
|
|
@@ -596,11 +594,5 @@ frappe.ui.form.GridRow = Class.extend({ |
|
|
|
}, |
|
|
|
toggle_editable: function(fieldname, editable) { |
|
|
|
this.set_field_property(fieldname, 'read_only', editable ? 0 : 1); |
|
|
|
}, |
|
|
|
toggle_check: function() { |
|
|
|
// to hide checkbox if grid is not editable |
|
|
|
this.wrapper |
|
|
|
.find('.grid-row-check') |
|
|
|
.css("display", this.grid.is_editable()? 'block':'none'); |
|
|
|
} |
|
|
|
}); |