diff --git a/Neos.Media.Browser/Resources/Private/Partials/ThumbnailView.html b/Neos.Media.Browser/Resources/Private/Partials/ThumbnailView.html index 615cd9b5672..61b6f08bf3e 100644 --- a/Neos.Media.Browser/Resources/Private/Partials/ThumbnailView.html +++ b/Neos.Media.Browser/Resources/Private/Partials/ThumbnailView.html @@ -12,8 +12,8 @@ }">
  • - -
    + +
    diff --git a/Neos.Media.Browser/Resources/Public/JavaScript/upload.js b/Neos.Media.Browser/Resources/Public/JavaScript/upload.js index 0307eaec53b..6ed965dafa2 100644 --- a/Neos.Media.Browser/Resources/Public/JavaScript/upload.js +++ b/Neos.Media.Browser/Resources/Public/JavaScript/upload.js @@ -114,8 +114,8 @@ if (window.parent !== window && window.parent.NeosMediaBrowserCallbacks) { // we are inside iframe $('.asset-list').on('click', '[data-asset-identifier]', function(e) { - if ($(e.target).closest('a, button').length === 0) { - if(window.parent.NeosMediaBrowserCallbacks && typeof window.parent.NeosMediaBrowserCallbacks.assetChosen === 'function') { + if ($(e.target).closest('a, button').not('[data-asset-identifier]').length === 0) { + if (window.parent.NeosMediaBrowserCallbacks && typeof window.parent.NeosMediaBrowserCallbacks.assetChosen === 'function') { window.parent.NeosMediaBrowserCallbacks.assetChosen($(this).attr('data-asset-identifier')); } e.preventDefault();