Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The media browser and media browser testbed both call drupal_add_js()
to add settings to the page. These settings could be #attached to the forms for improved alterability/cacheability.
Comment | File | Size | Author |
---|---|---|---|
#4 | attach-wysiwyg-assets-2121253-5.patch | 7.53 KB | Devin Carlson |
#1 | attach-media-browser-javascript-settings-2121253-1.patch | 1.92 KB | Devin Carlson |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedComment #2
ParisLiakos CreditAttribution: ParisLiakos commentedthis could be written as one liner, but in any case, if you keep it like that add a comma after array_values
Otherwise patch looks good. havent tested manually though
Comment #3
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedthere are errors when I attempt to apply to newest media dev version
Comment #4
Devin Carlson CreditAttribution: Devin Carlson commentedMedia: WYSIWYG should also #attach its assets.
Comment #5
Devin Carlson CreditAttribution: Devin Carlson commentedTested #4 and committed to Media 7.x-2.x. Leaving open for the remaining instances found in #1.
Comment #7
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedmedia_browser_js has been removed from media.
Edit: this is taken care of as of April 24, 2015 release
Comment #9
joseph.olstadfixed a while back