#kiwi.theme_relaxed .server_select .basic tr.have_key { font-size:0.8em; }
#kiwi.theme_relaxed .server_select .basic tr.channel td { padding-top:1em; }
#kiwi.theme_relaxed .server_select .basic { border-bottom: 1px dashed gray; margin-bottom:1em; }
-#kiwi.theme_relaxed .server_select .basic .show_more { display: block; width:110px; margin:10px 0 0 0; font-size:0.8em; background: url(../img/more.png) no-repeat right 7px; }
+#kiwi.theme_relaxed .server_select .basic .show_more { display: block; width:110px; margin:10px 0 0 0; font-size:0.8em; }
#kiwi.theme_relaxed .server_select.single_server .basic { border:none; }
#kiwi.theme_relaxed .server_select .status { text-align: center; font-weight: bold; padding:1em; }
#kiwi.theme_relaxed .server_select .status.ok { }
#kiwi.theme_cli .server_select .basic tr.have_pass { font-size:0.8em; }
#kiwi.theme_cli .server_select .basic tr.channel td { padding-top:1em; }
#kiwi.theme_cli .server_select .basic { border-bottom: 1px dashed gray; margin-bottom:1em; }
-#kiwi.theme_cli .server_select .basic .show_more { display: block; width:116px; margin:10px 0 0 0; font-size:0.8em; background: url(../img/more.png) no-repeat right 7px; }
+#kiwi.theme_cli .server_select .basic .show_more { display: block; width:116px; margin:10px 0 0 0; font-size:0.8em; }
#kiwi.theme_cli .server_select.single_server .basic { border:none; }
#kiwi.theme_cli .server_select .status { text-align: center; font-weight: bold; padding:1em; }
#kiwi.theme_cli .server_select .status.ok { }
#kiwi.theme_basic .server_select .basic tr.have_pass { font-size:0.8em; }
#kiwi.theme_basic .server_select .basic tr.channel td { padding-top:1em; }
#kiwi.theme_basic .server_select .basic { border-bottom: 1px dashed gray; margin-bottom:1em; }
-#kiwi.theme_basic .server_select .basic .show_more { display: block; width:110px; margin:10px 0 0 0; font-size:0.8em; background: url(../img/more.png) no-repeat right 7px; }
+#kiwi.theme_basic .server_select .basic .show_more { display: block; width:110px; margin:10px 0 0 0; font-size:0.8em; }
#kiwi.theme_basic .server_select.single_server .basic { border:none; }
#kiwi.theme_basic .server_select .status { text-align: center; font-weight: bold; padding:1em; }
#kiwi.theme_basic .server_select .status.ok { }
}
}
+ this.more_shown = false;
+
_kiwi.gateway.bind('onconnect', this.networkConnected, this);
_kiwi.gateway.bind('connecting', this.networkConnecting, this);
_kiwi.gateway.bind('onirc_error', this.onIrcError, this);
},
showMore: function (event) {
- $('.more', this.$el).slideDown('fast');
- $('input.server', this.$el).select();
+ if (!this.more_shown) {
+ $('.more', this.$el).slideDown('fast');
+ $('.show_more', this.$el)
+ .children('.icon-caret-down')
+ .removeClass('icon-caret-down')
+ .addClass('icon-caret-up');
+ $('input.server', this.$el).select();
+ this.more_shown = true;
+ } else {
+ $('.more', this.$el).slideUp('fast');
+ $('.show_more', this.$el)
+ .children('.icon-caret-up')
+ .removeClass('icon-caret-up')
+ .addClass('icon-caret-down');
+ $('input.nick', this.$el).select();
+ this.more_shown = false;
+ }
},
populateFields: function (defaults) {