From 7480ccaa157740f90704810c00edc5638818db88 Mon Sep 17 00:00:00 2001 From: kamidu Date: Fri, 17 Feb 2017 17:56:29 +0530 Subject: [PATCH] fixing datatable issues --- .../js/dataTables.extended.serversidepaging.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js index bedc54b4bd..c3e8fd5d00 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js +++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.data-tables-extended/public/js/dataTables.extended.serversidepaging.js @@ -61,14 +61,6 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter ordering: false, filter: false, bSortCellsTop: true, - fnInitComplete: function(){ - //loading tooltips - if (typeof $.fn.tooltip == 'function') { - $('[data-toggle="tooltip"]').tooltip(); - } else { - console.warn('Warning : Dependency missing - Bootstrap Tooltip Library'); - } - }, ajax: { url: context + "/api/data-tables/invoker", data: function (params) { @@ -111,6 +103,14 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter fnCreatedRow: fnCreatedRow, "fnDrawCallback": fnDrawCallback, initComplete: function () { + + //loading tooltips + if (typeof $.fn.tooltip == 'function') { + $('[data-toggle="tooltip"]').tooltip(); + } else { + console.warn('Warning : Dependency missing - Bootstrap Tooltip Library'); + } + this.api().columns().every(function () { var column = this;