From 9fd4c47c8e3d87efd89acab8c1b59a5f526506d4 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Fri, 31 Dec 2010 12:21:54 +0000 Subject: a more suitable name --- jarmon/jarmon.js | 12 ++++++------ jarmon/jarmon.test.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'jarmon') diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index 6bd8d23..d47af27 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -685,12 +685,12 @@ jarmon.Chart.fromRecipe = function(recipes, templateFactory, downloader) { /** - * Generate a form through which to manipulate the data sources for a chart + * Generate a form through which to choose a data source from a remote RRD file * - * @class jarmon.ChartConfig + * @class jarmon.RrdChooser * @constructor **/ -jarmon.ChartConfig = function($tpl) { +jarmon.RrdChooser = function($tpl) { this.$tpl = $tpl; this.data = { rrdUrl: '', @@ -700,7 +700,7 @@ jarmon.ChartConfig = function($tpl) { }; }; -jarmon.ChartConfig.prototype.drawRrdUrlForm = function() { +jarmon.RrdChooser.prototype.drawRrdUrlForm = function() { var self = this; this.$tpl.empty(); @@ -757,7 +757,7 @@ jarmon.ChartConfig.prototype.drawRrdUrlForm = function() { ).appendTo(this.$tpl); } -jarmon.ChartConfig.prototype.drawDsLabelForm = function() { +jarmon.RrdChooser.prototype.drawDsLabelForm = function() { var self = this; this.$tpl.empty(); @@ -801,7 +801,7 @@ jarmon.ChartConfig.prototype.drawDsLabelForm = function() { }; -jarmon.ChartConfig.prototype.drawDsSummary = function() { +jarmon.RrdChooser.prototype.drawDsSummary = function() { var self = this; this.$tpl.empty(); diff --git a/jarmon/jarmon.test.js b/jarmon/jarmon.test.js index b42f701..18b82d4 100644 --- a/jarmon/jarmon.test.js +++ b/jarmon/jarmon.test.js @@ -401,11 +401,11 @@ YUI({ logInclude: { TestRunner: true } }).use('console', 'test', function(Y) { Y.Test.Runner.add(new Y.Test.Case({ - name: "jarmon.ChartConfig", + name: "jarmon.RrdChooser", setUp: function() { this.$tpl = $('
').appendTo($('body')) - var c = new jarmon.ChartConfig(this.$tpl); + var c = new jarmon.RrdChooser(this.$tpl); c.drawRrdUrlForm(); }, -- cgit v1.2.3