summaryrefslogtreecommitdiff
path: root/jarmon.js
diff options
context:
space:
mode:
authorRichard Wall <richard@aziz>2010-07-22 12:35:48 +0100
committerRichard Wall <richard@aziz>2010-07-22 12:35:48 +0100
commit1384d53a27e8a40f0c6a5ca8098470a77d863765 (patch)
treefd931c60a12b7f9076659123c0df2a2f894a3be0 /jarmon.js
parent4e37d18361510c56cc4cf40e58f8814b9b6ff8c4 (diff)
Let the chart handle its own loading css
Diffstat (limited to 'jarmon.js')
-rw-r--r--jarmon.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/jarmon.js b/jarmon.js
index 0f2db79..077fc70 100644
--- a/jarmon.js
+++ b/jarmon.js
@@ -477,7 +477,8 @@ jarmon.Chart.prototype.draw = function() {
* @return: A I{MochiKit.Async.Deferred} which calls back with the chart
* data when the chart has been rendered.
**/
- this.template.trigger('chart_loading');
+ this.template.addClass('loading');
+
var result;
var results = [];
for(var i=0; i<this.data.length; i++) {
@@ -574,7 +575,7 @@ jarmon.Chart.prototype.draw = function() {
}, this)
.addBoth(
function(self, res) {
- self.template.trigger('chart_loaded');
+ self.template.removeClass('loading');
return res;
}, this);
};