summaryrefslogtreecommitdiff
path: root/cfg/jarmon-proton.js
diff options
context:
space:
mode:
Diffstat (limited to 'cfg/jarmon-proton.js')
-rw-r--r--cfg/jarmon-proton.js20
1 files changed, 4 insertions, 16 deletions
diff --git a/cfg/jarmon-proton.js b/cfg/jarmon-proton.js
index 532f802..28afef2 100644
--- a/cfg/jarmon-proton.js
+++ b/cfg/jarmon-proton.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://proton.parabola.nu/collectd/proton.parabola.nu/'
var tabRecipes = [
@@ -143,13 +135,9 @@ $(function() {
}
};
- var chartTemplate = $(".jarmon.proton .chart-container").remove();
-
- jarmon.buildTabbedChartUi(
- chartTemplate,
+ return {
+ name: 'proton',
chartRecipes,
- $('.jarmon.proton .tabbed-chart-interface'),
tabRecipes,
- $('.jarmon.proton .chartRangeControl')
- );
+ };
});