corrected tweet list position default tip
authorveltr
Tue, 14 May 2013 18:22:06 +0200
changeset 25 5e1e1307f7fd
parent 24 b557f4bae85f
corrected tweet list position
js/playscreen.js
--- a/js/playscreen.js	Fri May 03 15:53:36 2013 +0200
+++ b/js/playscreen.js	Tue May 14 18:22:06 2013 +0200
@@ -1041,7 +1041,7 @@
 	    _event.preventDefault();
     });
     
-    if (pageParams.keywords && pageParams.keywords.length) {
+    if (pageParams.keywords && pageParams.keywords.join("").length) {
     	$(".keyword-search a").removeClass("placeholder").text(pageParams.keywords.join(", "));
     }
     
@@ -1109,7 +1109,7 @@
     	currentTweet = $(this).parents("li.tweet").attr("data-tweet-id");
         $(".user-tweets").css({
             display: "block",
-            left: $(window).width() + 20
+            left: $(".contents").width() + 20
         }).animate({
             left: "420px"
         });
@@ -1162,20 +1162,20 @@
     
     $(window).on("resize", function() {
         throttledShowLocal
-        $(".user-tweets").width($(window).width()-480);
+        $(".user-tweets").width($(".contents").width()-480);
     });
     
     $(".close-user-tweets").click(function() {
         currentTweetTc = -1;
         $(".user-tweets").animate({
-            left: $(window).width() + 20
+            left: $(".contents").width() + 20
         }, function(){
             $(this).hide();
         });
         return false;
     })
     
-    $(".user-tweets").width($(window).width()-480);
+    $(".user-tweets").width($(".contents").width()-480);
     checkOrGoNext();
 }