From 8960315a972024703303f1c8b9d6e72d4d5fa00e Mon Sep 17 00:00:00 2001 From: Frank van Os Date: Thu, 28 Jan 2016 11:45:28 +0100 Subject: [PATCH] CHANGED bootstrap tooltip --- pagination/dynamic_pagination.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pagination/dynamic_pagination.js b/pagination/dynamic_pagination.js index 6675b77..a3f9bbb 100644 --- a/pagination/dynamic_pagination.js +++ b/pagination/dynamic_pagination.js @@ -204,14 +204,16 @@ $.fn.dataTableExt.oPagination.dynamic_pagination = { var input = $(paging).find('input'); input.css('display','inline'); + if(that.bootstrapTooltip){ - $('.pagination > li > input').attr('data-title','Max. page number: '+iPages).tooltip({ + input.attr('data-original-title','Max. page number: '+Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength)); + input.tooltip({ container: '.pagination', placement: 'top' }); } input.val(iCurrentPage); - $(paging).find('select').css('display','none'); + $(paging).find('select').css('display','none'); } // When there are pages show pagination block and info block