diff options
author | Richard Wall <richard@largo> | 2010-12-30 18:15:15 +0000 |
---|---|---|
committer | Richard Wall <richard@largo> | 2010-12-30 18:15:15 +0000 |
commit | cc1d4b25ed125afd07204da980f5c9bc555b7862 (patch) | |
tree | 530a62b6d16f955da3086a799190d60e9af765cb /jarmon/jarmon.js | |
parent | b3dfd26ce97cd1817f728667a586bf29eace752f (diff) |
Render an error message and a list of ds label fields
Diffstat (limited to 'jarmon/jarmon.js')
-rw-r--r-- | jarmon/jarmon.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/jarmon/jarmon.js b/jarmon/jarmon.js index c25210d..ae452d3 100644 --- a/jarmon/jarmon.js +++ b/jarmon/jarmon.js @@ -702,14 +702,18 @@ jarmon.ChartConfig.prototype.draw = function() { this.$tpl.empty(); $(this.errors).map(function(i, el) { - return $('<p/>').text(el.toString()); + return $('<p/>', {'class': 'error'}).text(el.toString()); }).appendTo(this.$tpl); var $f = $('<form/>') $('<div/>').append( $('<label/>').append( ['URL', ': '].join(''), - $('<input/>', {name: 'rrd_url', value: this.rrdUrl}) + $('<input/>', { + type: 'text', + name: 'rrd_url', + value: this.rrdUrl + }) ) ).appendTo($f); @@ -717,7 +721,7 @@ jarmon.ChartConfig.prototype.draw = function() { return $('<label/>').append( [el, ': '].join(''), $('<input/>', { - type: 'checkbox', + type: 'text', name: 'rrd_ds', value: el }) |