Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
Media Browser
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2011 at 12:10 UTC
Updated:
28 Jun 2012 at 20:04 UTC
"View Library" uses defaults Views AJAX for "exposed filters" form. This implementation is very inefficient in terms of data transfer and in terms of user experience as it replaces the form itself.
Main issues:
1) user looses keyboard focus; for instance next "Return" key-press will redirect to previous page
2) user doesn't know when AJAX call has been initiated and when AJAX callback returns anything written inside the field -after the call- will be overriden with previous AJAX state.
Attached patch is only a workaround to return focus back to the search field once the AJAX call returns, and also sets cursor position at the end of the string. It eliminates issue 1 and slightly issue 2.
| Comment | File | Size | Author |
|---|---|---|---|
| media-lost-focus.patch | 1.4 KB | peterpajchl |
Comments
Comment #1
peterpajchl commentedComment #2
dave reidThis is by design how the Views AJAX auto-submit works. Wouldn't this be best filed as a patch against Views?
Comment #3
dave reidComment #4
dave reidComment #5
gmclelland commentedI think this might be solved by splitting the exposed filters of the "View Library" into a block that is embedded above the actual "View library" view.
On most views that have exposed filters you will see the option for "Expose the filters as a block" under "Advanced", but you don't see this when editing the "View Library" view.
See my comment here http://drupal.org/node/1319528#comment-5605672
To possibly solve that issue, can media module "View library" create it's exposed filters in a block that gets placed above the view?
There wouldn't be a need for the patch attached to this issue because the you wouldn't ever lose the focus.
Hope that helps
Here is the related issues:
#1396700: Media Browser "View Library" Submit button redirects back to homepage, instead of closing modal and adding media file
#1319528: Media browser view library exposed form submit problem
Comment #6
devin carlson commentedSeparate issues have been filed for each of the problems outlined in the origin issue so I'm closing this "meta" issue.