zentaopms/module/story/js/report.js
2023-05-16 10:47:08 +08:00

20 lines
655 B
JavaScript

$(function()
{
var resizeChartTable = function()
{
$('.table-wrapper').each(function()
{
var $this = $(this);
$this.css('max-height', $this.closest('.table').find('.chart-wrapper').outerHeight());
});
};
resizeChartTable();
$(window).resize(resizeChartTable);
});
function changeChartType(type)
{
$('form').attr('action', createLink('story', 'report', 'productID=' + productID + '&branchID=' + branchID + '&storyType=' + storyType + '&browseType=' + browseType + '&moduleID=' + moduleID + '&chartType=' + type + '&projectID=' + projectID));
$('form').find('#submit').click();
}