Closed (duplicate)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Media Browser
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2013 at 11:16 UTC
Updated:
16 Sep 2013 at 11:38 UTC
Jump to comment: Most recent file
Comments
Comment #1
OnkelTem commentedComment #2
avr commentedRan into this issue - this looks & works well for me.
Might as well also add:
so that the dialog is resized on initial load (sorry - didn't have a good setup to reroll the patch). This also helps if you have an error/message in your form submission.
Comment #3
gagarine commentedDuplicate of #1956634: Media browser display is very narrow with jQuery 1.8
Comment #4
Rob C commentedRe-opening, because this issue already has a patch available. (while it is newer)
Comment #5
Rob C commentedAnd https://drupal.org/node/1956634#comment-7532673 looks true. (after some testing)
Update to the latest jquery_update 2.x-dev (or git) and configure jquery 1.8, then you do not need to patch the media module again. So closing up again. Jquery_update 2.4 would prolly fix this once released.
Comment #6
stefan.kornIt seems to me that it still does not work with the latest dev of jquery update: 7.x-2.3+6-dev.
Is there some place I can find a newer dev version?
Comment #7
OnkelTem commentedActually, jQuery Update has nothing to do with API. It had changed and can't magically start working :)
Btw, there is one more issue with the latest Media dev version:
The line marked "problem" should read as:
to work on latest jQuery UI.
Comment #8
sylus commentedAttaching updated patch based on discussion above.
Comment #9
sylus commentedWhoops removed extra underscore.
Comment #10
sylus commentedAdding the create from comment: #2
Everything is resizing and working perfectly now :)
Should be good to go.
Comment #11
OnkelTem commentedNote that you just deleted:
- $('#media-browser-tabset').tabs('select', Drupal.media.browser.activeTab);and added:
+ $('#media-browser-tabset').tabs('option', 'active', Drupal.media.browser.activeTab);which is not compatible with ancient Drupal 7 jQuery :)
Comment #12
sylus commentedOh I didn't even realize that thanks for the catch! How would you recommend solving this?
Comment #13
OnkelTem commentedI'm not aware of a common Drupal way for doing this. I would check $.ui.version, maybe something like:
Comment #14
ianthomas_ukThe issue described is the same as https://drupal.org/node/2032255 which has a patch for both versions of jQuery UI.
The issue that the second half of the patch is attempting to fix is a separate incompatibility, so I've raised a new issue for that - https://drupal.org/node/2089913
Comment #15
ianthomas_ukI've uploaded a patch to https://drupal.org/node/2089913
Comment #15.0
ianthomas_ukUpdated issue summary.