addCellProp: function() { var pthArray = $('th', g.hDiv); var columns = pthArray.length; var cellNum = 0; $('tbody tr td', g.bDiv).each ( function() { var n = cellNum % columns; var pth = pthArray[n]; cellNum++; var tdDiv = "<div style='"; if (pth != null) { if (p.sortname == $(pth).attr('abbr') && p.sortname) { this.className = 'sorted'; } tdDiv += $('div:first', pth).attr("style"); if (pth.hide) $(this).css('display', 'none'); } if (p.nowrap == false) tdDiv += "white-space:normal;"; if (this[removed] == '') this[removed] = ' '; tdDiv += "'>" + this[removed] + "</div>"; if (pth != null) { var prnt = $(this).parent()[0]; var pid = false; if (prnt.id) pid = prnt.id.substr(3); if (pth.process) pth.process(tdDiv, pid); } this[removed] = tdDiv; //add editable event here 'dblclick' } );