removed msgprint
This commit is contained in:
parent
89abceaa0d
commit
bdeecb59fe
2 changed files with 1 additions and 2 deletions
|
|
@ -263,7 +263,7 @@ _f.Grid.prototype.show=function(){if(this.can_add_rows){$ds(this.tbar_div);}else
|
|||
$ds(this.wrapper);}
|
||||
_f.Grid.prototype.hide=function(){$dh(this.wrapper);$dh(this.tbar_div);}
|
||||
_f.Grid.prototype.insert_column=function(doctype,fieldname,fieldtype,label,width,options,perm,reqd){var idx=this.head_row.cells.length;if(!width)width='140px';if((width+'').slice(-2)!='px'){width=width+'px';}
|
||||
msgprint(width);var col=this.head_row.insertCell(idx);col.doctype=doctype;col.fieldname=fieldname;col.fieldtype=fieldtype;col.innerHTML='<div>'+label+'</div>';col.label=label;if(reqd)
|
||||
var col=this.head_row.insertCell(idx);col.doctype=doctype;col.fieldname=fieldname;col.fieldtype=fieldtype;col.innerHTML='<div>'+label+'</div>';col.label=label;if(reqd)
|
||||
col.childNodes[0].style.color="#D22";col.style.width=width;col.options=options;col.perm=perm;this.col_idx_by_name[fieldname]=idx;}
|
||||
_f.Grid.prototype.reset_table_width=function(){var w=0;for(var i=0,len=this.head_row.cells.length;i<len;i++){w+=cint(this.head_row.cells[i].style.width);}
|
||||
this.head_tab.style.width=w+'px';this.tab.style.width=w+'px';}
|
||||
|
|
|
|||
|
|
@ -66,7 +66,6 @@ _f.Grid.prototype.insert_column = function(doctype, fieldname, fieldtype, label,
|
|||
if((width+'').slice(-2)!='px') {
|
||||
width= width + 'px';
|
||||
}
|
||||
msgprint(width);
|
||||
var col = this.head_row.insertCell(idx);
|
||||
|
||||
col.doctype = doctype; // for report (fields may be from diff doctypes)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue