Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Support optionally remembering your info.

  • Loading branch information...
commit 5fdf5d9cfe132659a6d7e7202ac06028c9f746ca 1 parent bc0a61f
@deviantintegral deviantintegral authored
Showing with 13 additions and 3 deletions.
  1. +10 −3 assets/js/views/overview.js
  2. +3 −0  views/templates.jade
View
13 assets/js/views/overview.js
@@ -110,9 +110,16 @@ var OverviewView = Backbone.View.extend({
irc.socket.emit('connect', connectInfo);
// Save standard settings in session storage.
- sessionStorage.setItem('nick', nick);
- sessionStorage.setItem('realName', realName);
- sessionStorage.setItem('server', server);
+ if ($('#connect-remember').attr('checked')) {
+ sessionStorage.setItem('nick', nick);
+ sessionStorage.setItem('realName', realName);
+ sessionStorage.setItem('server', server);
+ }
+ else {
+ sessionStorage.removeItem('nick');
+ sessionStorage.removeItem('realName');
+ sessionStorage.removeItem('server');
+ }
}
},
View
3  views/templates.jade
@@ -48,6 +48,9 @@ script(id="overview_connection", type="text/html")
.control-group
label(for="connect-realName") Real Name
input#connect-realName(type="text")
+ .control-group
+ label(for="connect-remember") Remember Me
+ input#connect-remember(type="checkbox",checked="checked")
.connect-more-options.hide
.control-group
label(for="connect-port") Port
Please sign in to comment.
Something went wrong with that request. Please try again.