Files
EasySoft-ZenTaoPMS/module/doc/js/tablecontents.js
T
2022-03-28 10:19:44 +08:00

22 lines
837 B
JavaScript

$(function()
{
if(!moduleTree || moduleTree.length == 0)
{
var contentHeight = $('.no-content').parent().innerHeight();
var titleHeight = $('.cell div:nth-child(1)').innerHeight();
var height = $(document).height() - $('#header').height() - parent.$('#appsBar').height() - (2 * parseInt($('#main').css('padding-top')));
$('.main-content .cell').height(height);
$('.no-content').parent().css('padding-top', (height - contentHeight)/2 - titleHeight + 'px');
}
$('#main .main-content li.has-list').addClass('open in');
$('.menu-actions > a').click(function()
{
$(this).parent().hasClass('open') ? $(this).css('background', 'none') : $(this).css('background', '#f1f1f1');
})
$('.menu-actions > a').blur(function() {$(this).css('background', 'none');})
})