diff options
author | Richard Wall <richard@aziz> | 2010-07-22 12:35:48 +0100 |
---|---|---|
committer | Richard Wall <richard@aziz> | 2010-07-22 12:35:48 +0100 |
commit | 1384d53a27e8a40f0c6a5ca8098470a77d863765 (patch) | |
tree | fd931c60a12b7f9076659123c0df2a2f894a3be0 /jarmon.js | |
parent | 4e37d18361510c56cc4cf40e58f8814b9b6ff8c4 (diff) |
Let the chart handle its own loading css
Diffstat (limited to 'jarmon.js')
-rw-r--r-- | jarmon.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); }; |