From 4571d2cf9e927717a4e3662a3331d5635c75edbf Mon Sep 17 00:00:00 2001 From: Aske Ertmann Date: Wed, 25 Jan 2017 13:29:59 -0500 Subject: [PATCH] BUGFIX: Selecting image in media browser thumbnail view Regression of 7a46cd6c6fdeee8c7e23fcc3996b2d0e4c46386a --- .../Resources/Private/Partials/ThumbnailView.html | 4 ++-- Neos.Media.Browser/Resources/Public/JavaScript/upload.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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();