diff options
-rw-r--r-- | jarmon/jarmon.js | 12 | ||||
-rw-r--r-- | jarmon/jarmon.test.js | 4 |
2 files changed, 8 insertions, 8 deletions
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 = $('<div/>').appendTo($('body')) - var c = new jarmon.ChartConfig(this.$tpl); + var c = new jarmon.RrdChooser(this.$tpl); c.drawRrdUrlForm(); }, |