Handle focus on login screen

This commit is contained in:
Mattias Erming 2014-07-20 18:40:43 -07:00
parent b2ca5eb172
commit cfa304d028
2 changed files with 10 additions and 8 deletions

View file

@ -404,14 +404,16 @@ $(function() {
var windows = $("#windows");
var forms = $("#sign-in, #connect");
windows.on("show", ".window", function() {
// Temporary.
return;
windows.on("show", "#sign-in", function() {
var self = $(this);
setTimeout(function() {
self.find("input").eq(0).focus().select();
}, 0);
var inputs = self.find("input");
inputs.each(function() {
var self = $(this);
if (self.val() === "") {
self.focus();
return false;
}
})
});
windows.on("click", ".input", function() {

View file

@ -1,5 +1,5 @@
{
"port": 9000,
"theme": "themes/example.css",
"public": true
"public": false
}