comparison 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
comparison
equal deleted inserted replaced
6:29becdd02dea 7:7ab6b48122af
29 node = params.node; 29 node = params.node;
30 30
31 var received = {}; 31 var received = {};
32 var messages = document.getElementById('messages'); 32 var messages = document.getElementById('messages');
33 33
34 var html = function(name, id) {
35 return received[name][id].html;
36 }
37
38 var date = function(name, id) {
39 return received[name][id].date;
40 }
41
42 var updateMessage = function(name, id) { 34 var updateMessage = function(name, id) {
35 var html = function(name, id) {
36 return received[name][id].html;
37 }
38
39 var date = function(name, id) {
40 return received[name][id].date;
41 }
42
43 var divs = messages.getElementsByTagNameNS(ns.xhtml, 'div'); 43 var divs = messages.getElementsByTagNameNS(ns.xhtml, 'div');
44 var container = null; 44 var container = null;
45 45
46 for (var i in divs) { 46 for (var i in divs) {
47 var div = divs[i] 47 var div = divs[i]