* Finish task #37288.

This commit is contained in:
hufangzhou
2021-04-08 15:19:25 +08:00
parent 14d2e1b8aa
commit e5dd0e98fc
+20
View File
@@ -62,4 +62,24 @@ $(function()
});
toggleFold('#productStoryForm', unfoldStories, productID, 'product');
adjustTableFooter();
$('body').on('click', '#toggleFold', adjustTableFooter);
$('body').on('click', '.icon.icon-angle-double-right', adjustTableFooter);
});
/**
* Adjust the table footer style.
*
* @access public
* @return void
*/
function adjustTableFooter()
{
if($('.main-col').height() < $(window).height())
{
$('.table.with-footer-fixed').css('margin-bottom', '0');
$('.table-footer').removeClass('fixed-footer');
$('.table-footer').css({"left":"0", "bottom":"0", "width":"unset"});
}
}