Fixed blog on home view
For some reason the script does not work if it resides in it's own
file, perhaps some JS guru can enlighten?
Patch by: Sverre Rabbelier
--- a/app/soc/content/js/feed-loader.js Thu Feb 19 19:57:07 2009 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-google.load("feeds", "1");
-
-function initialize() {
- var blog = new BlogPreview(document.getElementById("blog"));
- blog.show("{{ entity.feed_url }}", 3);
-}
-google.setOnLoadCallback(initialize);
-
--- a/app/soc/templates/soc/presence/home.html Thu Feb 19 19:57:07 2009 +0000
+++ b/app/soc/templates/soc/presence/home.html Thu Feb 19 20:13:41 2009 +0000
@@ -18,7 +18,15 @@
{% if entity.feed_url %}
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="/soc/content/js/blog-081117.js"></script>
- <script type="text/javascript" src="/soc/content/js/feed-loader.js"></script>
+ <script type="text/javascript" >
+ google.load("feeds", "1");
+
+ function initialize() {
+ var blog = new BlogPreview(document.getElementById("blog"));
+ blog.show("{{ entity.feed_url }}", 3);
+ }
+ google.setOnLoadCallback(initialize);
+ </script>
{% endif %}
{% endblock %}