diff blog.js @ 1:82905edac9d8

Fix some things.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 12 Jul 2011 17:47:32 +0200
parents f62b5c395a48
children f630f4b90564
line wrap: on
line diff
--- a/blog.js
+++ b/blog.js
@@ -70,7 +70,7 @@ var updateMessage = function(name, id) {
 		if (typeof div != 'object')
 			continue;
 
-		if (div.getAttributeNS(ns.idq, 'jid') === name) {
+		if (div.getAttributeNS(ns.e, 'jid') === name) {
 			container = div;
 			break;
 		}
@@ -78,7 +78,7 @@ var updateMessage = function(name, id) {
 
 	if (!container) {
 		var container = document.createElementNS(ns.xhtml, 'div');
-		container.setAttributeNS(ns.idq, 'jid', name);
+		container.setAttributeNS(ns.e, 'jid', name);
 		messages.appendChild(container);
 	}
 
@@ -88,7 +88,7 @@ var updateMessage = function(name, id) {
 		if (typeof article != 'object')
 			continue;
 
-		if (article.getAttributeNS(ns.idq, 'id') === id) {
+		if (article.getAttributeNS(ns.e, 'id') === id) {
 			container.replaceChild(html(name, id), article);
 			return;
 		}
@@ -107,7 +107,7 @@ var updateMessage = function(name, id) {
 				continue;
 
 			var ad = new Date();
-			ad.set8601(a.getAttributeNS(ns.idq, 'date'));
+			ad.set8601(a.getAttributeNS(ns.e, 'date'));
 
 			if (ad < d) {
 				toInsert = a;