]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Menu closing suggestion from Microbe.
authorChris Porter <redacted>
Mon, 20 Oct 2008 19:34:57 +0000 (20:34 +0100)
committerChris Porter <redacted>
Mon, 20 Oct 2008 19:34:57 +0000 (20:34 +0100)
TODO.txt
js/ui/qui.js

index 556df81ed3a1d3036fc5f261b25345fccfd141d0..093aafa874397084350e6411b3f97f01fcee0264 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -4,4 +4,4 @@ prettify wizard
 tab completion\r
 options for notices and stuff\r
 @+ in nick shown in text\r
-right click menus\r
+\r
index c4844774bb53341c0376405adc905bbe5fecd351..b2e8330bd81296391398dfa684ec3f34b6c1414a 100644 (file)
@@ -302,6 +302,11 @@ qwebirc.ui.QUI.Window = new Class({
     e.realNick = this.client.stripPrefix(nick);
     
     e.addEvent("click", function(x) {
+      if(this.prevNick == e) {
+        this.removePrevMenu();
+        return;
+      }
+      
       this.removePrevMenu();
       this.prevNick = e;
       e.addClass("selected");