Browse files

Minor tweaks to login/out behaviour

  • Loading branch information...
1 parent 3558b18 commit 15c32ac43f67f2b97f72084055e235b93a3796f1 @namelessjon committed Mar 5, 2010
Showing with 7 additions and 2 deletions.
  1. +3 −2 _attachments/script/app.js
  2. +4 −0 _attachments/style/main.css
View
5 _attachments/script/app.js
@@ -81,7 +81,7 @@ $(function() {
$('#account .logout').click (function() {
User.logout(function() {
$('#account #user').hide();
- $('#account .form').show();
+ $('#account .form').show();
});
return false;
});
@@ -105,10 +105,11 @@ $(function() {
$('#loginform input[type="password"]').val(),
function(user) {
$('#loginform input[type="text"]').val('');
- $('#loginform input[type="password"]').val();
+ $('#loginform input[type="password"]').val('');
$('#account #user .name').html(user.name);
$('#account #user').show();
+ $('#loginform').hide();
$('#account div.form').hide();
});
return false;
View
4 _attachments/style/main.css
@@ -169,6 +169,10 @@ float: right;
display:inline;
}
+#user {
+display:none;
+}
+
#loginform {
-moz-border-radius-topleft:5px;
-moz-border-radius-bottomleft:5px;

0 comments on commit 15c32ac

Please sign in to comment.