mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-25 19:00:03 +03:00
fixes #2314 hide the error message when writing or closing the modal
This commit is contained in:
parent
38bce29b33
commit
8f75afd625
1 changed files with 11 additions and 3 deletions
|
@ -475,8 +475,14 @@ function openAddAlbumPopIn(parentAlbumId) {
|
|||
$("#AddAlbum .AddIconTitle span").html(add_album_root_title)
|
||||
}
|
||||
$("#AddAlbum").fadeIn();
|
||||
$(".AddAlbumLabelUsername .user-property-input").val('');
|
||||
$(".AddAlbumLabelUsername .user-property-input").trigger('focus');
|
||||
const modalInput = $(".AddAlbumLabelUsername .user-property-input");
|
||||
modalInput.val('');
|
||||
modalInput.trigger('focus');
|
||||
modalInput.off('keyup').on('keyup', function () {
|
||||
if ($(this).val() !== '') {
|
||||
$(".AddAlbumErrors").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$("#AddAlbum").unbind('keyup');
|
||||
$("#AddAlbum").on('keyup', function (e) {
|
||||
|
@ -492,7 +498,9 @@ function openAddAlbumPopIn(parentAlbumId) {
|
|||
}
|
||||
|
||||
function closeAddAlbumPopIn() {
|
||||
$("#AddAlbum").fadeOut();
|
||||
$("#AddAlbum").fadeOut(function() {
|
||||
$(".AddAlbumErrors").hide();
|
||||
});
|
||||
}
|
||||
|
||||
function openRenameAlbumPopIn(replacedAlbumName) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue