]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Add nicklist hiding feature.
authorChris Porter <redacted>
Mon, 14 Feb 2011 04:13:27 +0000 (04:13 +0000)
committerChris Porter <redacted>
Mon, 14 Feb 2011 04:13:27 +0000 (04:13 +0000)
js/ui/frontends/qui.js
js/ui/panes/options.js

index a8ac001c3dcad254a3ad66055abbc1a17cdd95f4..cfe4b71890abe567d148152f1dae36c1bbdc51e9 100644 (file)
@@ -331,12 +331,12 @@ qwebirc.ui.QUI.JSUI = new Class({
     bottom.setStyle("top", (docsize.y - bottomsize.y));
     this.fireEvent("reflow");
   },
-  showChannel: function(state) {
+  showChannel: function(state, nicklistVisible) {
     var display = "none";
     if(state)
       display = "block";
 
-    this.right.setStyle("display", display);
+    this.right.setStyle("display", nicklistVisible ? display : "none");
     this.topic.setStyle("display", display);
   },
   showInput: function(state) {
@@ -581,7 +581,7 @@ qwebirc.ui.QUI.Window = new Class({
     this.parentObject.setLines(this.lines);
     this.parentObject.setChannelItems(this.nicklist, this.topic);
     this.parentObject.qjsui.showInput(inputVisible);
-    this.parentObject.qjsui.showChannel($defined(this.nicklist));
+    this.parentObject.qjsui.showChannel($defined(this.nicklist), this.parentObject.uiOptions.SHOW_NICKLIST);
 
     this.reflow();
     
index da3d7ca1ff8f85587e0444b441563fe0dc59a594..2d92bafddb976f8b831b721ebf2697a5564065f3 100644 (file)
@@ -49,7 +49,8 @@ qwebirc.config.DEFAULT_OPTIONS = [
       ui.setModifiableStylesheetValues(value, 0, 0);
     }
   }],
-  [12, "QUERY_ON_NICK_CLICK", "Query on nickname click in channel", false]
+  [12, "QUERY_ON_NICK_CLICK", "Query on nickname click in channel", false],
+  [13, "SHOW_NICKLIST", "Show nickname list in channels", true]
 ];
 
 qwebirc.config.DefaultOptions = null;