Hi everyone.
If you create a field with a mediabrowser widget and will try to filter files there. But instead of clicking on "Filter" button will press "enter" on your keyboard then the form will be submitted and redirected to /admin/content/media_browser, so all the menus will be shown and other unnecessary html. To prevent it I've created a small patch.
Hope it'll help someone.
Actually the same problem happens in 7.x-1.x-dev version.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | submit-on-enter.patch | 1 KB | soul88 |
| 0005-fix-for-submitting-mediabrowser-form-by-clicking-ent.patch | 984 bytes | soul88 |
Comments
Comment #1
soul88Oops, forgot to include the "cliecking command" itself. Now should be better
Comment #2
shawn_smiley commentedI've committed this patch to the 1.x branch. Thanks!