From 296b918f34db48881fd10a777390c97b075b9784 Mon Sep 17 00:00:00 2001
From: ands <ands@andspad.(none)>
Date: Mon, 6 Dec 2010 10:51:36 +0100
Subject: [PATCH] twitter-refresh gefixt (refreshfunktion existierte bereits)

---
 webroot/css/widget_light.css                |  5 +++++
 webroot/widgets/TwitterWall/TwitterWall.php | 23 +++++++--------------
 2 files changed, 12 insertions(+), 16 deletions(-)

diff --git a/webroot/css/widget_light.css b/webroot/css/widget_light.css
index c4f2e13..330339c 100644
--- a/webroot/css/widget_light.css
+++ b/webroot/css/widget_light.css
@@ -4,10 +4,12 @@
 	font-family: inherit;
 	color:#000000;
 }
+
 .widget_light td, .widget_light div {
 	font-family: inherit;
 	color:#000000;
 }
+
 .widget_light h1 {
 	margin: 10;
 	padding: 0;
@@ -28,6 +30,7 @@
 	font-size: 0.6em;
 	color: #222222;
 }
+
 .widget_light ul {
 	background-color:#95897E;
 	margin: 10;
@@ -47,6 +50,7 @@
 .widget_light li img {
 	padding: 4;
 }
+
 .widget_light a, .widget_light a:hover, .widget_light a:visited, .widget_light a:active {
 	text-decoration:none;
 	font-family: inherit;
@@ -54,6 +58,7 @@
 	font-style: normal;
 	color: #333333;
 }
+
 .widget_light img
 {
 	float:left;
diff --git a/webroot/widgets/TwitterWall/TwitterWall.php b/webroot/widgets/TwitterWall/TwitterWall.php
index 3576143..117c9a3 100644
--- a/webroot/widgets/TwitterWall/TwitterWall.php
+++ b/webroot/widgets/TwitterWall/TwitterWall.php
@@ -16,23 +16,14 @@ class TwitterWall implements iWidget
     $widgetOutput .= '
       <script src="widgets/TwitterWall/jquery.tweet.js" type="text/javascript"></script>
       <script type="text/javascript">
-	var TwitterMail_everyFive = 5;
-	function TwitterMail_update () {
-          if (TwitterMail_everyFive == 5) {
-            TwitterMail_everyFive = 0;
-            $(".tweet").tweet({
-              avatar_size: 48,
-              count: 5,
-              loading_text: "loading tweets...",
-              query: "#warpzone"
-            });
-          } else {
-            TwitterMail_everyFive ++;
-          }
-	}
         $(document).ready(function(){
-          TwitterMail_update();
-          addFunctionToMinuteTimer(TwitterMail_update);
+          $(".tweet").tweet({
+            avatar_size: 48,
+            count: 6,
+            loading_text: "loading tweets...",
+            query: "#warpzone",
+            refresh_interval: 360
+          });
         });
       </script>'."\n";
     $widgetOutput .= '<div class="tweet"></div>'."\n";
-- 
GitLab