]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/baseuiwindow.js
You can now middle click on tabs to close them.
[irc/quakenet/qwebirc.git] / js / ui / baseuiwindow.js
index cc05e9009aaa6476e61207c6ae9265b5eb94ba78..3dc7026931e7c95b9e09914ead2c2d12ce65a63d 100644 (file)
@@ -19,6 +19,7 @@ qwebirc.ui.Window = new Class({
     this.scrollpos = null;
     this.lastNickHash = {};
     this.lastSelected = null;
+    this.closed = false;
   },
   updateNickList: function(nicks) {
   },
@@ -26,6 +27,8 @@ qwebirc.ui.Window = new Class({
     qwebirc.ui.Colourise("[" + topic + "]", element, this.client.exec, this.parentObject.urlDispatcher.bind(this.parentObject), this);
   },
   close: function() {
+    this.closed = true;
+    
     if($defined(this.scrolltimer)) {
       $clear(this.scrolltimer);
       this.scrolltimer = null;