From 38397248c69056a1678702c9ce773aac2f2110ce Mon Sep 17 00:00:00 2001 From: Mattias Erming Date: Wed, 10 Sep 2014 12:33:15 -0700 Subject: [PATCH] Minor fix --- client/js/shout.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/js/shout.js b/client/js/shout.js index b3263fda..c2f73454 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -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()