Skip to content

Commit cca60e7

Browse files
committed
Grid Editing: Cleanup row refresh
1 parent b7af470 commit cca60e7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

grid-editing/grid.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
},
5151
objectchange: function(event, ui) {
5252
console.log("developer at index", ui.index, "changed", ui.object);
53-
this.save();
53+
this.save().refresh();
5454
},
5555
change: function(event, ui) {
5656
console.log("developer(s) at index", ui.index, ui.change + "ed", ui.items);
@@ -81,9 +81,6 @@
8181
oldValue: oldValue,
8282
newValue: ui.value
8383
});
84-
developers._trigger("objectchange", event, {
85-
object: object
86-
});
8784
// for the navigator
8885
grid.element.focus();
8986
}
@@ -94,10 +91,6 @@
9491
var editForm = $( "#editForm" ).hide().submit( function( event ) {
9592
event.preventDefault();
9693
serializeForm( this, developer );
97-
// TODO the ui-widget class is added after rendering the template by the grid
98-
// therefore just rerendering the row looks bad, need to update the template to include the classes
99-
// or extend the grid to refresh a single row - need that anyway, as currently the inline editor breaks
100-
tmplItem.update();
10194
developers._trigger("objectchange", event, {
10295
index: localDevelopers.indexOf(developer),
10396
object: developer

0 commit comments

Comments
 (0)