Handle focus on login screen
This commit is contained in:
parent
b2ca5eb172
commit
cfa304d028
@ -404,14 +404,16 @@ $(function() {
|
|||||||
var windows = $("#windows");
|
var windows = $("#windows");
|
||||||
var forms = $("#sign-in, #connect");
|
var forms = $("#sign-in, #connect");
|
||||||
|
|
||||||
windows.on("show", ".window", function() {
|
windows.on("show", "#sign-in", function() {
|
||||||
// Temporary.
|
|
||||||
return;
|
|
||||||
|
|
||||||
var self = $(this);
|
var self = $(this);
|
||||||
setTimeout(function() {
|
var inputs = self.find("input");
|
||||||
self.find("input").eq(0).focus().select();
|
inputs.each(function() {
|
||||||
}, 0);
|
var self = $(this);
|
||||||
|
if (self.val() === "") {
|
||||||
|
self.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
windows.on("click", ".input", function() {
|
windows.on("click", ".input", function() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"port": 9000,
|
"port": 9000,
|
||||||
"theme": "themes/example.css",
|
"theme": "themes/example.css",
|
||||||
"public": true
|
"public": false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user