From cc1d4b25ed125afd07204da980f5c9bc555b7862 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Thu, 30 Dec 2010 18:15:15 +0000 Subject: Render an error message and a list of ds label fields --- jarmon/jarmon.js | 10 +++++++--- jarmon/jarmon.test.js | 43 ++++++++++++++++++++++++++++++++++++++----- test.html | 5 +---- 3 files changed, 46 insertions(+), 12 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 $('

').text(el.toString()); + return $('

', {'class': 'error'}).text(el.toString()); }).appendTo(this.$tpl); var $f = $('

') $('
').append( $('