diff options
author | Michael Leibman <michael.leibman@gmail.com> | 2013-11-19 09:40:50 -0800 |
---|---|---|
committer | Michael Leibman <michael.leibman@gmail.com> | 2013-11-19 09:40:50 -0800 |
commit | 1c01e67e862d379ee14abdbdd4be68c1d100412d (patch) | |
tree | 96b1002c605a3879623ef2a54db2a7a471aa5ba9 /slick.grid.js | |
parent | 11f7c7a42cc75889e88b205239f236af0a86cc10 (diff) | |
parent | 755a0c292f3126ebc96040d60624a75fc50b8d31 (diff) | |
download | SlickGrid-1c01e67e862d379ee14abdbdd4be68c1d100412d.zip SlickGrid-1c01e67e862d379ee14abdbdd4be68c1d100412d.tar.gz SlickGrid-1c01e67e862d379ee14abdbdd4be68c1d100412d.tar.bz2 |
Merge pull request #729 from lencyforce/master
undo edit command doesn't trigger onCellChange event
Diffstat (limited to 'slick.grid.js')
-rw-r--r-- | slick.grid.js | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/slick.grid.js b/slick.grid.js index ec8ce84..398bd2d 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -3149,10 +3149,20 @@ if (typeof Slick === "undefined") { execute: function () {
this.editor.applyValue(item, this.serializedValue);
updateRow(this.row);
+ trigger(self.onCellChange, {
+ row: activeRow,
+ cell: activeCell,
+ item: item
+ });
},
undo: function () {
this.editor.applyValue(item, this.prevSerializedValue);
updateRow(this.row);
+ trigger(self.onCellChange, {
+ row: activeRow,
+ cell: activeCell,
+ item: item
+ });
}
};
@@ -3164,11 +3174,6 @@ if (typeof Slick === "undefined") { makeActiveCellNormal();
}
- trigger(self.onCellChange, {
- row: activeRow,
- cell: activeCell,
- item: item
- });
} else {
var newItem = {};
currentEditor.applyValue(newItem, currentEditor.serializeValue());
|