1
0
mirror of https://github.com/beestat/app.git synced 2026-04-28 11:50:53 -04:00
beestat/js/layer/glenwood_report.js
2025-10-04 16:59:13 -04:00

34 lines
813 B
JavaScript

/**
* Glenwood layer.
*/
beestat.layer.glenwood_report = function() {
beestat.layer.apply(this, arguments);
};
beestat.extend(beestat.layer.glenwood_report, beestat.layer);
beestat.layer.glenwood_report.prototype.decorate_ = function(parent) {
/*
* Set the overflow on the body so the scrollbar is always present so
* highcharts graphs render properly.
*/
$('body').style({
'overflow-y': 'scroll',
'background': beestat.style.color.bluegray.light,
'padding': '0 ' + beestat.style.size.gutter + 'px'
});
(new beestat.component.header('glenwood_report')).render(parent);
// All the cards
var cards = [];
cards.push([
{
'card': new beestat.component.card.glenwood_report(),
'size': 12
}
]);
(new beestat.component.layout(cards)).render(parent);
};