From 4c4089159e39fc833454715a14dad0499486aba4 Mon Sep 17 00:00:00 2001 From: Darren Date: Sun, 18 Sep 2011 13:03:16 +0100 Subject: [PATCH] SSL selection fix, CSS mods on login screen --- css/ui.css | 2 ++ js/front.js | 14 ++++++++------ node/client/index.html.jade | 2 +- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/css/ui.css b/css/ui.css index bbecaa7..c13d572 100644 --- a/css/ui.css +++ b/css/ui.css @@ -33,12 +33,14 @@ #kiwi #login { width:665px; margin:0px auto; } #kiwi #login ul { list-style:none; } #kiwi #login ul li { overflow:show; margin-bottom:10px; } +#kiwi #login ul li.section { margin-top:25px; } #kiwi #login ul li label { float:left; text-align:right; padding-right:.5em; } #kiwi #login input { border:none; box-shadow: inset 0 1px 2px rgba(0,0,0,0.5),0 1px 0px rgba(255,255,255,0.3); } +#kiwi #login input[type=checkbox] { width:auto !important; } #kiwi #login .more { border-top: 1px dotted #888888; } #kiwi #login .more_link { font-size:12px; diff --git a/js/front.js b/js/front.js index d7ed406..8a4c7ad 100644 --- a/js/front.js +++ b/js/front.js @@ -122,7 +122,9 @@ kiwi.front = { 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(); }); @@ -283,22 +285,22 @@ kiwi.front = { 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; diff --git a/node/client/index.html.jade b/node/client/index.html.jade index 9c8993a..2c66c67 100644 --- a/node/client/index.html.jade +++ b/node/client/index.html.jade @@ -144,7 +144,7 @@ html(xmlns="http://www.w3.org/1999/xhtml", lang="en-gb") 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 -- 2.25.1