[wp-trac] [WordPress Trac] #30583: Switching Media Library Views Clears Search Query
WordPress Trac
noreply at wordpress.org
Thu Feb 26 22:41:47 UTC 2015
#30583: Switching Media Library Views Clears Search Query
--------------------------+--------------------
Reporter: mrwweb | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: Media | Version: 4.0.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------
Comment (by wonderboymusic):
[attachment:30583.diff 30583.diff] persists search across grid/list.
* In Grid mode, when the page loads and `s` is in the URL, all attachments
are loaded and then the search value is set, which will filter the
attachments. If the page loads with the attachments already filtered, the
library will have to be requery'd to get the full set, which will require
weirder code.
* When a user searches, the mode-switcher link for list view is updated
dynamically to represent the current `location.href` in the proper `mode=`
context.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30583#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list