diff options
author | Chris Porter <slug@qwebirc.org> | 2011-02-14 04:13:27 (GMT) |
---|---|---|
committer | Chris Porter <slug@qwebirc.org> | 2011-02-14 04:13:27 (GMT) |
commit | 6d79f5b9c046cbe3e2d80faf26f4cf62825ebe67 (patch) | |
tree | 52f2feabe2f2f80938aecf8f45f659f253546f4c | |
parent | 6f5821f1eed88f323dd87f915ff6dd2d8a630d65 (diff) |
Add nicklist hiding feature.
-rw-r--r-- | js/ui/frontends/qui.js | 6 | ||||
-rw-r--r-- | js/ui/panes/options.js | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/js/ui/frontends/qui.js b/js/ui/frontends/qui.js index a8ac001..cfe4b71 100644 --- a/js/ui/frontends/qui.js +++ b/js/ui/frontends/qui.js @@ -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(); diff --git a/js/ui/panes/options.js b/js/ui/panes/options.js index da3d7ca..2d92baf 100644 --- a/js/ui/panes/options.js +++ b/js/ui/panes/options.js @@ -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; |