diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.roles/roles.hbs b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.roles/roles.hbs
index 5476c743dd..98f85e8137 100644
--- a/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.roles/roles.hbs
+++ b/components/device-mgt/org.wso2.carbon.device.mgt.ui/src/main/resources/jaggeryapps/devicemgt/app/pages/cdmf.page.roles/roles.hbs
@@ -69,7 +69,7 @@
-
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.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.js
index 31400687bc..8e09c31bb2 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.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.js
@@ -151,19 +151,24 @@ $.fn.datatables_extended = function(settings){
}
function getAdvanceToolBar(){
+ var selectableBtnHtml = "";
if (!table.hasClass('no-toolbar')) {
if (table.hasClass('sorting-enabled')) {
- return '' +
- '' +
- '' +
+ if(!table.hasClass('un-selectable')){
+ selectableBtnHtml = '' +
+ '';
+ }
+ return '' + selectableBtnHtml +
'' +
'' +
'- ' + dropdownmenu[0].outerHTML + '
' +
'
'
} else {
- return '' +
- '' +
- '' +
+ if(!table.hasClass('un-selectable')){
+ selectableBtnHtml = '' +
+ '';
+ }
+ return '' + selectableBtnHtml +
'' +
'' +
'
'
@@ -236,6 +241,7 @@ $.fn.datatables_extended = function(settings){
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
if(!$(button).hasClass('disabled')){
if($(button).html() == 'Select All') {
+ $('.bulk-action-row').removeClass('hidden');
thisTable.api().rows().every(function () {
$(this.node()).addClass(rowSelectedClass);
$(button).html('Deselect All');
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 c79bd99516..2458f4a30a 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
@@ -220,23 +220,27 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
}
function getAdvanceToolBar() {
+ var selectableBtnHtml = "";
if (table.hasClass('sorting-enabled')) {
- return '' +
- '' +
- '' +
- '' +
- '' +
- '- ' + dropdownmenu[0].outerHTML + '
' +
- '
'
+ if(!table.hasClass('un-selectable')){
+ selectableBtnHtml = '' +
+ '';
+ }
+ return '' + selectableBtnHtml +
+ '' +
+ '' +
+ '- ' + dropdownmenu[0].outerHTML + '
' +
+ '
';
} else {
- return '' +
- '' +
- '' +
- '' +
- '' +
- '
'
+ if(!table.hasClass('un-selectable')){
+ selectableBtnHtml = '' +
+ '';
+ }
+ return '' + selectableBtnHtml +
+ '' +
+ '' +
+ '
';
}
- ;
}
@@ -303,6 +307,7 @@ $.fn.datatables_extended_serverside_paging = function (settings, url, dataFilter
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
if (!$(button).hasClass('disabled')) {
if ($(button).html() == 'Select All') {
+ $('.bulk-action-row').removeClass('hidden');
thisTable.api().rows().every(function () {
$(this.node()).addClass(rowSelectedClass);
$(button).html('Deselect All');