I tried to hide the format selector in the media_format_form with the hook_media_format_form_prepare_alter hook, but then the JavaScript failed because it assumes the format selector is a select.
Changed media.format_form.js to allow any type of input.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | simplify-format-selector-js-1960936-2.patch | 663 bytes | devin carlson |
| format-selector-x-0.patch | 858 bytes | logaritmisk |
Comments
Comment #1
slashrsm commentedLooks OK. It would probably be better to select "#edit-format", as it should be faster.
See (Additional notes): http://api.jquery.com/input-selector/
Comment #2
devin carlson commentedAs slashrsm mentioned in #1, it would be faster to select
#edit-format.Comment #3
devin carlson commentedTested #1 with an existing Media install and verified that the format form's format selector continued to function properly.
Committed #1 to Media 7.x-2.x.