Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Media Browser
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2011 at 18:58 UTC
Updated:
6 Jan 2015 at 16:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aaron commentedComment #2
james.elliott commentedI'm concerned that with multi select turned on, clicking an already selected media item will deselect it. So the 2nd click that triggers the dblclick event might be unselecting the media item.
I'm also wondering how the UX for multiselect with this works. You can single click a bunch of items and then double click the last to select them all? Or should a double click unselect all the others and then submit only the singly selected item.
Comment #3
james.elliott commentedI'm concerned that with multi select turned on, clicking an already selected media item will deselect it. So the 2nd click that triggers the dblclick event might be unselecting the media item.
I'm also wondering how the UX for multiselect with this works. You can single click a bunch of items and then double click the last to select them all? Or should a double click unselect all the others and then submit only the singly selected item.
Comment #4
aaron commentedI'd originally had the double click also trigger the click behavior, but found that unnecessary in testing (at least in linux/ff). Easy enough to put that back in if other browsers de-select during a double-click.
I didn't test against multi-select, however. IMHO, I think that a double-click should submit only the singly selected item. Where do we get multi-select? Is that in the media admin browsing? I'll take a look shortly.
Comment #5
james.elliott commentedThe multi-select is used in the media browser library tab. Some implementations, such as a multi value media field benefitted from being able to add multiple media items at once. It allows you to select and unselect media items and then add them by clicking submit.
I agree on the dblclick behavior in a multi select context. Only the item you are double clicking should be selected.
Comment #6
effulgentsia commentedSubscribe. I don't have much to add here. Just want to know what you two end up deciding.
Comment #7
arthurf commentedMoving this to a 7.x-2.x feature request- this would need to be tested against the views implementation.
Comment #8
arthurf commented#1: media-library-double-click.1024632.1.patch queued for re-testing.
Comment #10
rudiedirkx commented(I'm nobody, but) I agree that the double click should trigger the submit and that a multi selection shouldn't be the default (if possible at all). The library selection feels very natural, except for that one thing: double click to choose.
I can't find any multi selection, though I'm new to the media module, so that's not saying much.
Comment #11
dave reidComment #12
jerryitt commentedThis patch allows double click on media in the media library, it works against the current 7.x-2.x pull.
Comment #13
bleen commentedPlease replace your TAB with double spaces
what happened to the ";" that used to be there?
Also, you should have a new line at the end of this file.
Comment #14
jerryitt commented@bleen18 thanks for pointing that out to me. I have made the changes to the patch in #12.
Here's the new one.
Comment #15
dddave commentedFolks, this patch is actually working. Just applied it and now I am happily testing it and it seems to work fine. From a functionality standpoint this is fine. Guess somebody should check if the code is fine enough.
Comment #16
ParisLiakos commentedfile in patch is now removed..please an updated patch for views browser?
Comment #17
jonathan_hunt commentedI've reworked this to function on 7.x-2.x-dev by copying some of the logic for single click and adding a new function Drupal.media.browser.selectMediaAndSubmit().
Comment #18
svenryen commentedI tested the patch in #17 in Safari, Firefox and Chrome on Mac.
Double-clicking on an image in the Media Browser Library works in all the browsers.
I also read through the code and it looks ready to be committed.
This is a nice feature to add to the library! :)
Comment #19
aaron commentedCommitted to http://drupalcode.org/project/media.git/commit/2ee4641.
Comment #21
chrisgross commentedWhat version of Firefox was this tested with? It doesn't work on 34.0.5 on OS X.
Comment #22
svenryen commentedI don't remember what version of Firefox was used. Now my Firefox is also at 34.0.5 though I'm not sure what version I used in October. Did you apply the patch or did you simply try with the latest dev of the code?
Comment #23
chrisgross commentedAh, I had only tried to dev version. I guess I thought #19 meant it had been commited to dev, but perhaps not. Looks like the patch works fine.