From 25dc50a08195436055df0fb6269e60c1cda578da Mon Sep 17 00:00:00 2001 From: devfake Date: Tue, 23 Jun 2015 10:16:52 +0200 Subject: [PATCH] close login --- site/client/app/components/landing.js | 8 +++++++- site/client/app/views/modals/login.html | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/site/client/app/components/landing.js b/site/client/app/components/landing.js index e294772..ea4cec3 100644 --- a/site/client/app/components/landing.js +++ b/site/client/app/components/landing.js @@ -37,7 +37,13 @@ module.exports = { setTimeout(function() { $('.login-username').focus(); - }, 500); + }, 300); + }, + + closeLogin: function(e) { + if($(e.target).context.className == 'modal active') { + this.modal = false; + } } } diff --git a/site/client/app/views/modals/login.html b/site/client/app/views/modals/login.html index c8e5bf2..1579990 100644 --- a/site/client/app/views/modals/login.html +++ b/site/client/app/views/modals/login.html @@ -1,4 +1,4 @@ -