Update bootstrap pagination events to not redraw when button is disabled

pull/99/head
Greg Jopa 10 years ago
parent 652b6176d3
commit 24ac62e71d

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

Loading…
Cancel
Save