Customers find navigating the media browser a little challenging. One of the annoyances they report is for single-value fields having to select an image and then scroll to the bottom of the browser to submit it. They'd prefer to simply double-click media assets to select and submit them in one step.
It looks like this was intended to be added as part of #2815809: [Entity Browser Enhanced] to provide some behaviours and style enhancements to Entity Browsers, specifically for multiselect and image/media browsers. or #2829444: Multiselect media fields cannot select more than 1 item. but it slipped through the cracks.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2888535-5.patch | 887 bytes | phenaproxima |
#4 | interdiff-lightning-2888535-2-4.txt | 1.55 KB | Dane Powell |
#4 | lightning-2888535-4.patch | 1.2 KB | Dane Powell |
Comments
Comment #2
Dane Powell CreditAttribution: Dane Powell at Acquia commentedThis might be more of a proof of concept, but it works in our case.
Comment #3
balsamaI don't think double-click for single items was ever in our plan, but it makes sense... and has a POC patch, so I put it into our 2.1.6 plan. Thanks!
Comment #4
Dane Powell CreditAttribution: Dane Powell at Acquia commentedSomewhat more generic version of this patch
Comment #5
phenaproximaThis oughta do the trick. Rather than bother with awkward jQuery selectors, I just changed the Backbone view that powers the entity browser ;-) I did a bit of manual testing and it worked beautifully. If this works for you, mark it RTBC and we'll merge it.
Comment #6
Dane Powell CreditAttribution: Dane Powell at Acquia commentedWorks great, thanks!
Comment #8
balsamaThanks! Committed.