minor change
authorveltr
Wed, 15 Feb 2012 18:59:57 +0100
changeset 4 17a9402e2dc3
parent 3 82b4715202d1
child 5 ab76826cf7bc
minor change
client/podium-cp-tweets.html
--- a/client/podium-cp-tweets.html	Wed Feb 15 18:52:07 2012 +0100
+++ b/client/podium-cp-tweets.html	Wed Feb 15 18:59:57 2012 +0100
@@ -53,14 +53,15 @@
                 });
                 myPodium = new Btv_Podium([0,0,0,0]);
                 myTweetSource.setTweetsCallback(function() {
-                    $("#btv-cp-nb-tweets").html(this.count());
+                    var _filtered = this.afterDate(tzero);
+                    $("#btv-cp-nb-tweets").html(_filtered.count());
                     var _counts = [];
                     for (var _i = 0; _i < _keywords.length; _i++) {
-                        _counts.push(this.search(_keywords[_i]).count());
+                        _counts.push(_filtered.search(_keywords[_i]).count());
                     }
                     myPodium.update(_counts);
                     $('#btv-cp-liste-tweets-tout').html(
-                        this.reverse().slice(0,20).map(function(_t) {
+                        _filtered.reverse().slice(0,20).map(function(_t) {
                             return '<li onclick="addTweet(\''
                                 + _t.id_str
                                 + '\'); return false;"><a title="Ajouter à la sélection" href="#"><span class="btv-cp-tweet-date">'