From f9d753395a9a0edc3744f95c211bc85ecee1529f Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Fri, 30 Jan 2015 00:35:30 +0100 Subject: [PATCH] Auto-focus password input when sharing album --- src/scripts/album.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/album.js b/src/scripts/album.js index d598cd5..2236f48 100644 --- a/src/scripts/album.js +++ b/src/scripts/album.js @@ -423,7 +423,7 @@ album.setPublic = function(albumID, e) { $('.basicModal .choice input[name="password"]').on('change', function() { - if ($(this).prop('checked')===true) $('.basicModal .choice input[data-name="password"]').show(); + if ($(this).prop('checked')===true) $('.basicModal .choice input[data-name="password"]').show().focus(); else $('.basicModal .choice input[data-name="password"]').hide(); });