Permalink
Browse files

Revert README, list changes.

  • Loading branch information...
1 parent 7dd678e commit 54bdd8594be5c20322813bd1904412df16e3c60d @SamuelMS SamuelMS committed Jan 1, 2017
Showing with 19 additions and 50 deletions.
  1. +16 −36 README.md
  2. +0 −11 dist/jsgrid.js
  3. +2 −2 dist/jsgrid.min.js
  4. +1 −1 package.json
View
@@ -1140,30 +1140,28 @@ The following callbacks are supported:
```javascript
{
- onDataLoading: function(args) {}, // before controller.loadData
- onDataLoaded: function(args) {}, // on done of controller.loadData
+ onDataLoading: function(args) {}, // before controller.loadData
+ onDataLoaded: function(args) {}, // on done of controller.loadData
- onInit: function(args) {}, // after grid initialization
+ onInit: function(args) {}, // after grid initialization
- onItemInserting: function(args) {}, // before controller.insertItem
- onItemInserted: function(args) {}, // on done of controller.insertItem
- onItemUpdating: function(args) {}, // before controller.updateItem
- onItemUpdated: function(args) {}, // on done of controller.updateItem
- onItemDeleting: function(args) {}, // before controller.deleteItem
- onItemDeleted: function(args) {}, // on done of controller.deleteItem
- onItemEditing: function(args) {}, // before item editing
- onItemEditCancelling: function(args) {}, // before item edit is cancelled
- onItemInvalid: function(args) {}, // after item validation, in case data is invalid
+ onItemInserting: function(args) {}, // before controller.insertItem
+ onItemInserted: function(args) {}, // on done of controller.insertItem
+ onItemUpdating: function(args) {}, // before controller.updateItem
+ onItemUpdated: function(args) {}, // on done of controller.updateItem
+ onItemDeleting: function(args) {}, // before controller.deleteItem
+ onItemDeleted: function(args) {}, // on done of controller.deleteItem
+ onItemInvalid: function(args) {}, // after item validation, in case data is invalid
- onError: function(args) {}, // on fail of any controller call
+ onError: function(args) {}, // on fail of any controller call
- onOptionChanging: function(args) {}, // before changing the grid option
- onOptionChanged: function(args) {}, // after changing the grid option
+ onOptionChanging: function(args) {}, // before changing the grid option
+ onOptionChanged: function(args) {}, // after changing the grid option
- onPageChanged: function(args) {}, // after changing the current page
+ onPageChanged: function(args) {}, // after changing the current page
- onRefreshing: function(args) {}, // before grid refresh
- onRefreshed: function(args) {}, // after grid refresh
+ onRefreshing: function(args) {}, // before grid refresh
+ onRefreshed: function(args) {}, // after grid refresh
}
```
@@ -1370,24 +1368,6 @@ $("#grid").jsGrid({
```
-### onItemEditCancelling
-> version added: 1.5.4
-
-Fires before item edit is cancelled.
-
-Has the following arguments:
-
-```javascript
-
-{
- grid // grid instance
- row // editing row jQuery element
- item // editing item
- itemIndex // editing item index
-}
-
-```
-
### onItemInserting
Fires before item insertion.
View
@@ -173,7 +173,6 @@
onItemInserting: $.noop,
onItemInserted: $.noop,
onItemEditing: $.noop,
- onItemEditCancelling: $.noop,
onItemUpdating: $.noop,
onItemUpdated: $.noop,
onItemInvalid: $.noop,
@@ -1348,16 +1347,6 @@
if(!this._editingRow)
return;
- var $row = this._editingRow,
- editingItem = $row.data(JSGRID_ROW_DATA_KEY),
- editingItemIndex = this._itemIndex(editingItem);
-
- this._callEventHandler(this.onItemEditCancelling, {
- row: $row,
- item: editingItem,
- itemIndex: editingItemIndex
- });
-
this._getEditRow().remove();
this._editingRow.show();
this._editingRow = null;
View
Oops, something went wrong.
View
@@ -30,7 +30,7 @@
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "^0.7.0",
"grunt-contrib-cssmin": "^0.10.0",
- "grunt-contrib-qunit": "^0.5.2",
+ "grunt-contrib-qunit": "^1.2.0",
"grunt-contrib-uglify": "^0.4.0",
"grunt-image-embed": "^0.3.1",
"grunt-string-replace": "^1.2.1"

0 comments on commit 54bdd85

Please sign in to comment.