|
|
|
@ -25,9 +25,11 @@ $.fn.dataTable.Api.register('row().show()', function() {
|
|
|
|
|
// Get row index
|
|
|
|
|
var new_row_index = this.index();
|
|
|
|
|
// Row position
|
|
|
|
|
var row_position = this.table().rows()[0].indexOf( new_row_index );
|
|
|
|
|
var row_position = this.table()
|
|
|
|
|
.rows({ search: 'applied' })[0]
|
|
|
|
|
.indexOf(new_row_index);
|
|
|
|
|
// Already on right page ?
|
|
|
|
|
if( row_position >= page_info.start && row_position < page_info.end ) {
|
|
|
|
|
if ((row_position >= page_info.start && row_position < page_info.end) || row_position < 0) {
|
|
|
|
|
// Return row object
|
|
|
|
|
return this;
|
|
|
|
|
}
|
|
|
|
|