From d9601a87d071f066f0c58d3a8b93687e0d0969c4 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sun, 1 Aug 2010 12:12:55 +0100 Subject: get rid of the separate loading of the available rrd list --- jarmon.js | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'jarmon.js') diff --git a/jarmon.js b/jarmon.js index 8f7edb7..5ec5283 100644 --- a/jarmon.js +++ b/jarmon.js @@ -582,7 +582,7 @@ jarmon.Chart.prototype.draw = function() { }; -jarmon.Chart.fromRecipe = function(rrdUrlList, recipes, templateFactory, downloader) { +jarmon.Chart.fromRecipe = function(recipes, templateFactory, downloader) { /** * A factory function to generate a list of I{Chart} from a list of recipes * and a list of available rrd files in collectd path format. @@ -592,12 +592,11 @@ jarmon.Chart.fromRecipe = function(rrdUrlList, recipes, templateFactory, downloa * @param templateFactory: A callable which generates an html template for a * chart. **/ - var rrdUrlBlob = rrdUrlList.join('\n') var charts = []; var dataDict = {}; - var recipe, chartData, template, c, i, j, x, ds, label, rrd, unit, re, match; + var recipe, chartData, template, c, i, j, ds, label, rrd, unit, re, match; for(i=0; i 0) { template = templateFactory(); -- cgit v1.2.3