#kiwi #login { width:665px; margin:0px auto; }\r
#kiwi #login ul { list-style:none; }\r
#kiwi #login ul li { overflow:show; margin-bottom:10px; }\r
+#kiwi #login ul li.section { margin-top:25px; }\r
#kiwi #login ul li label { float:left; text-align:right; padding-right:.5em; }\r
#kiwi #login input {\r
border:none;\r
box-shadow: inset 0 1px 2px rgba(0,0,0,0.5),0 1px 0px rgba(255,255,255,0.3);\r
\r
}\r
+#kiwi #login input[type=checkbox] { width:auto !important; }\r
#kiwi #login .more { border-top: 1px dotted #888888; }\r
#kiwi #login .more_link {\r
font-size:12px;\r
kiwi.front.doLayout();
try {
kiwi.front.run('/connect ' + netsel.val() + ' ' + netport.val() + ' ' + (netssl.attr('checked') ? 'true' : ''));
- } catch (e) {}
+ } catch (e) {
+ console.log(e);
+ }
$('#kiwi .connectwindow').slideUp('', kiwi.front.barsShow);
$('#windows').click(function () { $('#kiwi_msginput').focus(); });
case '/connect':
case '/server':
- if (parts[1] === undefined) {
- alert('Usage: /connect servername [[port] [ssl]]');
+ if (typeof parts[1] === 'undefined') {
+ alert('Usage: /connect servername [port] [ssl]');
break;
}
- if (parts[2] === undefined) {
+ if (typeof parts[2] === 'undefined') {
parts[2] = 6667;
}
- if ((parts[3] === undefined) || (parts[3] === 'false') || (parts[3] === 'no')) {
+ if ((typeof parts[3] === 'undefined') || !parts[3] || (parts[3] === 'false') || (parts[3] === 'no')) {
parts[3] = false;
} else {
parts[3] = true;
}
- kiwi.front.cur_channel.addMsg(null, ' ', '=== Connecting to ' + parts[1] + ' on port ' + parts[2] + ((parts[3]) ? ' using SSL' : '') + '...', 'status');
+ kiwi.front.cur_channel.addMsg(null, ' ', '=== Connecting to ' + parts[1] + ' on port ' + parts[2] + (parts[3] ? ' using SSL' : '') + '...', 'status');
kiwi.gateway.connect(parts[1], parts[2], parts[3]);
break;
li
label(for="channel") Channel:
input(type="text", id="channel", name="channel", class="channel", value="#kiwiirc")
- li
+ li(class="section")
label(for="port") Port:
input(type="text", id="port", name="port", class="port", value="6667")
li