tweet refresh fix
authorveltr
Thu, 28 Mar 2013 18:44:51 +0100
changeset 16 9a82fbbf6377
parent 15 7c71148ea252
child 17 8ee8c9ea2a9f
tweet refresh fix
js/playscreen.js
--- a/js/playscreen.js	Wed Mar 27 18:21:29 2013 +0100
+++ b/js/playscreen.js	Thu Mar 28 18:44:51 2013 +0100
@@ -469,7 +469,6 @@
     	$(".play-tagcloud").html(localkeywords.map(cloudTemplate).join(""));
 	    
 		throttledGetTweets();
-	    
 		showTopicViz();
     }
     
@@ -493,7 +492,6 @@
     	selectedWord = false;
     
     function showTweets() {
-    	    	
     	var toshow = [];
     	var topics = Array.prototype.join.call($(".topic.selected").map(function(){return $(this).attr("data-topic-id")})).split(",");
     	
@@ -774,7 +772,8 @@
         var el = $(this);
         $(this).toggleClass("selected");
         el.attr("data-timestamp", el.hasClass("selected") ? ++ordertag : 999999);
-        showTopicViz();
+		throttledGetTweets();
+		showTopicViz();
     });
 
 	var h = Hammer($(".play-bottom")[0]);