Auto-focus password input when sharing album

This commit is contained in:
Tobias Reich 2015-01-30 00:35:30 +01:00
parent 68893ae402
commit f9d753395a

View File

@ -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();
});