Skip to content

Commit 9956529

Browse files
committed
Grid Editing: Move ui-widget-content class to template to enable row-refresh
1 parent 20c41eb commit 9956529

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

grid-spf/grid.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ $.widget( "ui.grid", {
3535
var tbody = this.element.find( "tbody" ).empty();
3636
// TODO how to refresh a single row? -> tmplItem().update()
3737
$.tmpl( this.options.rowTemplate, this.options.source.toArray() ).appendTo( tbody );
38-
tbody.find( "td" ).addClass( "ui-widget-content" );
3938
this._trigger("refresh");
4039
},
4140

@@ -74,7 +73,7 @@ $.widget( "ui.grid", {
7473
if ( customTemplate ) {
7574
return $(customTemplate).html();
7675
}
77-
return "<td>${" + field + "}</td>";
76+
return "<td class=\"ui-widget-content\">${" + field + "}</td>";
7877
}).join( "" );
7978
template = "<tr>" + template + "</tr>";
8079
// compile the template

0 commit comments

Comments
 (0)