Merge pull request #869 from DimalChandrasiri/master

Fixing [Policies] Policy deactivate option is not available
merge-requests/1/head
Madhawa Perera 7 years ago committed by GitHub
commit 55770caab1

@ -219,6 +219,7 @@ $.fn.datatables_extended = function(settings){
$(document).off('click','.viewEnabledIcon');
//--- End of EMM related codes
} else if ($(button).html() == 'Cancel'){
$('.bulk-action-row').addClass('hidden');
thisTable.removeClass("table-selectable");
$(button).addClass("active").html('Select');
$(button).parent().next().children().addClass("disabled");
@ -255,6 +256,11 @@ $.fn.datatables_extended = function(settings){
$('body').on('click', '[data-type=selectable]', function(){
var rowSelectedClass = 'DTTT_selected selected';
$(this).toggleClass(rowSelectedClass);
if ($('.table-selectable .DTTT_selected').length > 0) {
$('.bulk-action-row').removeClass('hidden');
} else {
$('.bulk-action-row').addClass('hidden');
}
var button = this,
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();

@ -384,6 +384,11 @@ var responsiveTextRatio = 0.2,
//Event for row select/deselect
$('body').on('click', '[data-type=selectable]', function(){
$(this).toggleClass(ROW_SELECTED_CLASS);
if ($('.table-selectable .DTTT_selected').length > 0) {
$('.bulk-action-row').removeClass('hidden');
} else {
$('.bulk-action-row').addClass('hidden');
}
var button = this,
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();

Loading…
Cancel
Save