mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
added editable_editComplete option naming the event to trigger when the editing has completed updating
This commit is contained in:
parent
458669a75d
commit
56cfc6617b
@ -13,7 +13,8 @@
|
||||
editable_columns : [],
|
||||
editable_enterToAccept : true,
|
||||
editable_autoResort : false,
|
||||
editable_noEdit : 'no-edit'
|
||||
editable_noEdit : 'no-edit',
|
||||
editable_editComplete : 'editComplete'
|
||||
},
|
||||
init: function(table, thisWidget, c, wo){
|
||||
if (!wo.editable_columns.length) { return; }
|
||||
@ -57,7 +58,9 @@
|
||||
if (t) {
|
||||
c.$table
|
||||
.data('contentFocused', false)
|
||||
.trigger('updateCell', [ $this, wo.editable_autoResort ]);
|
||||
.trigger('updateCell', [ $this, wo.editable_autoResort, function(table){
|
||||
$this.trigger( wo.editable_editComplete );
|
||||
} ]);
|
||||
$this.trigger('blur.tseditable');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user