]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/baseuiwindow.js
Add option to hide timestamp.
[irc/quakenet/qwebirc.git] / js / ui / baseuiwindow.js
index 080d93ce0f548acf535192f7d1b3befd3cd3a795..feda6dd807a19e875278a17d4991a6e60a1a99e4 100644 (file)
@@ -129,7 +129,12 @@ qwebirc.ui.Window = new Class({
     if(type)
       line = this.parentObject.theme.message(type, line, lhilight);
     
-    qwebirc.ui.Colourise(qwebirc.irc.IRCTimestamp(new Date()) + " " + line, element, this.client.exec, this.parentObject.urlDispatcher.bind(this.parentObject), this);
+    var tsE = document.createElement("span");
+    tsE.className = "timestamp";
+    tsE.appendChild(document.createTextNode(qwebirc.irc.IRCTimestamp(new Date()) + " "));
+    element.appendChild(tsE);
+    
+    qwebirc.ui.Colourise(line, element, this.client.exec, this.parentObject.urlDispatcher.bind(this.parentObject), this);
     this.scrollAdd(element);
   },
   errorMessage: function(message) {