21 lines
411 B
JavaScript
21 lines
411 B
JavaScript
$(function()
|
|
{
|
|
adjustTableFooter();
|
|
});
|
|
|
|
/**
|
|
* Adjust the table footer style.
|
|
*
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
function adjustTableFooter()
|
|
{
|
|
if($('#mainContent').height() < $(window).height())
|
|
{
|
|
$('.table').removeClass('with-footer-fixed');
|
|
$('.table-footer').removeClass('fixed-footer');
|
|
$('.table-footer').css({'left': 0, 'bottom': 0, 'width': 'unset'});
|
|
}
|
|
}
|