Browse code

fix private message html incomplete div

devnewton authored on 16/11/2012 at 12:06:56
Showing 1 changed files
... ...
@@ -154,7 +154,7 @@ function submitClicked() {
154 154
   }			
155 155
 
156 156
   if (aMessage.getType() == 'chat') { // a private message we have to putMsgHTML ourself
157
-    putMsgHTML(aMessage.getBody(),new Date().toLocaleTimeString(),to,'purple',null,'to');
157
+    putMsgHTML(aMessage.getBody(),new Date().toLocaleTimeString(),to,'purple',null,'to',aMessage.getID());
158 158
   }
159 159
 
160 160
   // add message to our message history
... ...
@@ -186,7 +186,7 @@ function putMsgHTML(msg,mtime,user,usercolor,err,type,norloge) {
186 186
       norlogeToMtime[norloge] = mtime;
187 187
   }
188 188
   else
189
-      msgHTML += '<div';
189
+      msgHTML += '<div>';
190 190
 
191 191
   if (msg.match(/^\/me /)) {
192 192
     msg = msgFormat(msg,norlogeToMtime);