Auto-focus password input when sharing album

pull/331/head
Tobias Reich 9 years ago
parent 68893ae402
commit f9d753395a

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

Loading…
Cancel
Save