From ba9ae5cbc0d6df4c78db3ff93c37fbb9d5c38667 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Wed, 16 Nov 2022 15:19:01 +0100 Subject: [PATCH] (cp 4b0a544) fixed #1794 keyup event is triggered only once for album creation --- admin/themes/default/js/albums.js | 1 + 1 file changed, 1 insertion(+) diff --git a/admin/themes/default/js/albums.js b/admin/themes/default/js/albums.js index 8bf692c5a..e95ffd102 100644 --- a/admin/themes/default/js/albums.js +++ b/admin/themes/default/js/albums.js @@ -441,6 +441,7 @@ function openAddAlbumPopIn(parentAlbumId) { $(".AddAlbumLabelUsername .user-property-input").val(''); $(".AddAlbumLabelUsername .user-property-input").focus(); + $("#AddAlbum").unbind('keyup'); $("#AddAlbum").on('keyup', function (e) { // 13 is 'Enter' if(e.keyCode === 13) {