From 24ac62e71d773c50a13d8890b75282899cfef15e Mon Sep 17 00:00:00 2001 From: Greg Jopa Date: Fri, 5 Sep 2014 23:26:22 -0700 Subject: [PATCH] Update bootstrap pagination events to not redraw when button is disabled --- integration/bootstrap/3/dataTables.bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/bootstrap/3/dataTables.bootstrap.js b/integration/bootstrap/3/dataTables.bootstrap.js index 5dc2393..2b77e7b 100644 --- a/integration/bootstrap/3/dataTables.bootstrap.js +++ b/integration/bootstrap/3/dataTables.bootstrap.js @@ -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 ); } };