summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Wall <richard@largo>2010-12-31 12:21:54 +0000
committerRichard Wall <richard@largo>2010-12-31 12:21:54 +0000
commit9fd4c47c8e3d87efd89acab8c1b59a5f526506d4 (patch)
treeb30fa64cf85e66c1c71bf707814fb83cd44c9307
parentbe6a9a53cfc620df3b79591f846c9f159b271247 (diff)
a more suitable name
-rw-r--r--jarmon/jarmon.js12
-rw-r--r--jarmon/jarmon.test.js4
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();
},