mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
fixes wso2/product-iot#1243
This commit is contained in:
parent
5d603d3bbe
commit
aa6d0da3fd
@ -255,6 +255,11 @@ $.fn.datatables_extended = function(settings){
|
|||||||
$('body').on('click', '[data-type=selectable]', function(){
|
$('body').on('click', '[data-type=selectable]', function(){
|
||||||
var rowSelectedClass = 'DTTT_selected selected';
|
var rowSelectedClass = 'DTTT_selected selected';
|
||||||
$(this).toggleClass(rowSelectedClass);
|
$(this).toggleClass(rowSelectedClass);
|
||||||
|
if ($('.table-selectable .DTTT_selected').length > 0) {
|
||||||
|
$('.bulk-action-row').removeClass('hidden');
|
||||||
|
} else {
|
||||||
|
$('.bulk-action-row').addClass('hidden');
|
||||||
|
}
|
||||||
var button = this,
|
var button = this,
|
||||||
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
|
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
|
||||||
|
|
||||||
|
|||||||
@ -384,6 +384,11 @@ var responsiveTextRatio = 0.2,
|
|||||||
//Event for row select/deselect
|
//Event for row select/deselect
|
||||||
$('body').on('click', '[data-type=selectable]', function(){
|
$('body').on('click', '[data-type=selectable]', function(){
|
||||||
$(this).toggleClass(ROW_SELECTED_CLASS);
|
$(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,
|
var button = this,
|
||||||
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
|
thisTable = $(this).closest('.dataTables_wrapper').find('.dataTable').dataTable();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user