Merge pull request #99 from gregjopa/pagination-fix

Update bootstrap pagination events to not redraw when button is disabled
pull/102/head
Allan Jardine 10 years ago
commit 6b2ce39715

@ -45,7 +45,7 @@ DataTable.ext.renderer.pageButton.bootstrap = function ( settings, host, idx, bu
var i, ien, node, button; var i, ien, node, button;
var clickHandler = function ( e ) { var clickHandler = function ( e ) {
e.preventDefault(); e.preventDefault();
if ( e.data.action !== 'ellipsis' ) { if ( !$(e.currentTarget).hasClass('disabled') ) {
api.page( e.data.action ).draw( false ); api.page( e.data.action ).draw( false );
} }
}; };

Loading…
Cancel
Save