summaryrefslogtreecommitdiff
path: root/cfg/jarmon-winston.js
diff options
context:
space:
mode:
Diffstat (limited to 'cfg/jarmon-winston.js')
-rw-r--r--cfg/jarmon-winston.js22
1 files changed, 5 insertions, 17 deletions
diff --git a/cfg/jarmon-winston.js b/cfg/jarmon-winston.js
index 1349928..8d05999 100644
--- a/cfg/jarmon-winston.js
+++ b/cfg/jarmon-winston.js
@@ -4,15 +4,7 @@
* Some example recipes for Collectd RRD data - you *will* need to modify this
* based on the RRD data available on your system.
*/
-
-$(function() {
-
- for (var i = 0; i < jarmon.timeRangeShortcuts.length; i++) {
- if (jarmon.timeRangeShortcuts[i][0] === 'last day') {
- jarmon.timeRangeShortcuts[i][2] = true;
- }
- }
-
+define(['jarmon'], function(jarmon) {
var srv = 'https://winston.parabola.nu/collectd/winston.parabola.nu/'
var tabRecipes = [
@@ -142,13 +134,9 @@ $(function() {
*/
};
- var chartTemplate = $(".jarmon.winston .chart-container").remove();
-
- jarmon.buildTabbedChartUi(
- chartTemplate,
+ return {
+ name: 'winston',
chartRecipes,
- $('.jarmon.winston .tabbed-chart-interface'),
- tabRecipes,
- $('.jarmon.winston .chartRangeControl')
- );
+ tabRecipes
+ };
});