diff blog.js @ 7:7ab6b48122af

Add support for content in Atom and improve published display.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 02 Nov 2011 09:35:46 -0700
parents f630f4b90564
children 42d3f454d4b4
line wrap: on
line diff
--- a/blog.js
+++ b/blog.js
@@ -31,15 +31,15 @@ if (params.node)
 var received = {};
 var messages = document.getElementById('messages');
 
-var html = function(name, id) {
-	return received[name][id].html;
-}
+var updateMessage = function(name, id) {
+	var html = function(name, id) {
+		return received[name][id].html;
+	}
 
-var date = function(name, id) {
-	return received[name][id].date;
-}
+	var date = function(name, id) {
+		return received[name][id].date;
+	}
 
-var updateMessage = function(name, id) {
 	var divs = messages.getElementsByTagNameNS(ns.xhtml, 'div');
 	var container = null;