]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/baseui.js
IE6 fix.
[irc/quakenet/qwebirc.git] / js / ui / baseui.js
index 9f8b97007784ba2b37b837985b09aca4b968d350..cf9b94de97210b1b0bb9756bd8328b68215ab250 100644 (file)
@@ -73,11 +73,10 @@ qwebirc.ui.BaseUI = new Class({
         } else {
           this.selectWindow(this.windowArray[index - 1]);
         }
-        
-        this.windowArray = this.windowArray.erase(window);
       }
     }
     
+    this.windowArray = this.windowArray.erase(window);
     delete this.windows[window.client][window.identifier];
   },
     /*
@@ -97,7 +96,7 @@ qwebirc.ui.StandardUI = new Class({
   initialize: function(parentElement, windowClass, uiName, options) {
     this.parent(parentElement, windowClass, uiName, options);
     window.addEvent("keydown", function(x) {
-      if(!x.alt)
+      if(!x.alt || x.control)
         return;
         
       if(x.key == "a" || x.key == "A") {
@@ -162,8 +161,21 @@ qwebirc.ui.StandardUI = new Class({
   }
 });
 
-qwebirc.ui.NewLoginUI = new Class({
+qwebirc.ui.QuakeNetUI = new Class({
   Extends: qwebirc.ui.StandardUI,
+  urlDispatcher: function(name, window) {
+    if(name == "qwhois") {
+      return function(auth) {
+        this.client.exec("/MSG Q whois #" + auth);
+      }.bind(window);
+    }
+    
+    return this.parent(name);
+  }
+});
+
+qwebirc.ui.NewLoginUI = new Class({
+  Extends: qwebirc.ui.QuakeNetUI,
   loginBox: function(callbackfn, initialNickname, initialChannels, autoConnect, autoNick) {
     this.postInitialize();
     var w = this.newCustomWindow("Connect", true, qwebirc.ui.WINDOW_CONNECT);