]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/qui.js
Add basic branding.
[irc/quakenet/qwebirc.git] / js / ui / qui.js
index bd5128f98dee46e54e6181c4367a5580d116f964..5380befbec343cdc55ba5c52cb4861991e3142ab 100644 (file)
@@ -1,7 +1,7 @@
 qwebirc.ui.QUI = new Class({
   Extends: qwebirc.ui.NewLoginUI,
-  initialize: function(parentElement, theme) {
-    this.parent(parentElement, qwebirc.ui.QUI.Window, "qui");
+  initialize: function(parentElement, theme, options) {
+    this.parent(parentElement, qwebirc.ui.QUI.Window, "qui", options);
     this.theme = theme;
     this.parentElement = parentElement;
   },
@@ -275,6 +275,8 @@ qwebirc.ui.QUI.Window = new Class({
     this.lines = new Element("div");
     this.parentObject.qjsui.applyClasses("middle", this.lines);
     this.lines.addClass("lines");
+    if(type != qwebirc.ui.WINDOW_CUSTOM && type != qwebirc.ui.WINDOW_CONNECT)
+      this.lines.addClass("ircwindow");
     
     this.lines.addEvent("scroll", function() {
       this.scrolleddown = this.scrolledDown();