Position non-sticky footer at bottom of viewport
-Fix footer height and position after datatables are populated/drawn -Remove footer-padding css rule -Remove unnecessary spacing on all applicable pages
This commit is contained in:
@@ -75,6 +75,9 @@ script.
|
||||
var amountParts = amount.split('.');
|
||||
$("td:eq(2)", row).html(updown + amountParts[0] + '.<span class="decimal">' + amountParts[1] + '</span>').addClass(rowclass);
|
||||
$("td:eq(3)", row).html(balanceParts[0] + '.<span class="decimal">' + balanceParts[1] + '</span>');
|
||||
},
|
||||
fnDrawCallback: function(settings) {
|
||||
fixFooterHeightAndPosition();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -23,6 +23,9 @@ script.
|
||||
return rows;
|
||||
}
|
||||
},
|
||||
fnDrawCallback: function(settings) {
|
||||
fixFooterHeightAndPosition();
|
||||
},
|
||||
columns: [
|
||||
{data: 'nodes', width: '100%'}
|
||||
],
|
||||
@@ -53,6 +56,9 @@ script.
|
||||
return rows;
|
||||
}
|
||||
},
|
||||
fnDrawCallback: function(settings) {
|
||||
fixFooterHeightAndPosition();
|
||||
},
|
||||
columns: [
|
||||
{data: 'nodes', width: '100%'}
|
||||
],
|
||||
|
||||
@@ -29,6 +29,9 @@ script.
|
||||
$("td:eq(2)", row).html(data['version']);
|
||||
$("td:eq(3)", row).html(data['country']+flagBlock);
|
||||
},
|
||||
fnDrawCallback: function(settings) {
|
||||
fixFooterHeightAndPosition();
|
||||
},
|
||||
columns: [
|
||||
{ data: 'address', width: '25%' },
|
||||
{ data: 'protocol', width: '25%' },
|
||||
@@ -40,6 +43,7 @@ script.
|
||||
$($.fn.dataTable.tables(true)).DataTable().responsive.recalc();
|
||||
$($.fn.dataTable.tables(true)).css('width', '100%');
|
||||
$($.fn.dataTable.tables(true)).DataTable().columns.adjust().draw();
|
||||
fixFooterHeightAndPosition();
|
||||
});
|
||||
});
|
||||
.card.card-default.border-0
|
||||
|
||||
Reference in New Issue
Block a user