Minor fix

This commit is contained in:
Mattias Erming 2014-09-10 12:33:15 -07:00
parent 05a51f74a7
commit 38397248c6
1 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,10 @@ $(function() {
});
}
body.addClass("signed-out");
login.find("input[name='user']").val($.cookie("user") || "");
var input = login.find("input[name='user']");
if (input.val() === "") {
input.val($.cookie("user") || "");
}
sidebar.find(".sign-in")
.click()
.end()