2015-09-26 00:18:12 -05:00
|
|
|
/* globals $, categoryID, columnChart, categoryDate */
|
2015-02-22 09:19:32 -06:00
|
|
|
$(function () {
|
2015-05-24 11:22:41 -05:00
|
|
|
"use strict";
|
2015-03-04 02:42:47 -06:00
|
|
|
if (typeof categoryID !== 'undefined') {
|
2015-09-26 00:18:12 -05:00
|
|
|
// more splits:
|
|
|
|
if ($('#all').length > 0) {
|
|
|
|
columnChart('chart/category/' + categoryID + '/all', 'all');
|
|
|
|
}
|
|
|
|
if ($('#period').length > 0) {
|
|
|
|
columnChart('chart/category/' + categoryID + '/period', 'period');
|
|
|
|
}
|
2015-02-22 09:19:32 -06:00
|
|
|
|
2015-09-26 00:18:12 -05:00
|
|
|
}
|
|
|
|
if (typeof categoryID !== 'undefined' && typeof categoryDate !== undefined) {
|
|
|
|
columnChart('chart/category/' + categoryID + '/period/' + categoryDate, 'period-specific-period');
|
|
|
|
}
|
2015-02-22 09:19:32 -06:00
|
|
|
|
|
|
|
|
|
|
|
});
|