From 9a4807b069aaa89192b468d6ca11a9899095b692 Mon Sep 17 00:00:00 2001 From: Imesh Chandrasiri Date: Mon, 24 Jul 2017 15:52:54 +0530 Subject: [PATCH] Changed code structuring. --- .../public/js/dataTables.extended.serversidepaging.js | 6 ++---- 1 file changed, 2 insertions(+), 4 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 a8cd244328a..c79bd995161 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 @@ -323,13 +323,11 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter $('body').on('click', '[data-type=selectable]', function () { var rowSelectedClass = 'DTTT_selected selected'; $(this).toggleClass(rowSelectedClass); - - if($('.table-selectable .DTTT_selected').length > 0){ + if ($('.table-selectable .DTTT_selected').length > 0) { $('.bulk-action-row').removeClass('hidden'); - }else{ + } else { $('.bulk-action-row').addClass('hidden'); } - var button = this, thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();