20 lines
550 B
JavaScript
20 lines
550 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('task', 'report', 'executionID=' + executionID + '&browseType=' + browseType + '&chartType=' + type));
|
|
$('form').find('#submit').click();
|
|
}
|