Media: Return to the library when the editing a selection and all items get de-selected. props koopersmith. fixes #22715.

git-svn-id: https://develop.svn.wordpress.org/trunk@23051 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-12-05 00:22:11 +00:00
parent 4e94295826
commit 3fd91ed4cf
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@
refreshContent: function() {
var selection = this.get('selection'),
frame = this.frame,
router = frame.router,
router = frame.router.get(),
mode = frame.content.mode();
if ( this.active && ! selection.length && ! router.get( mode ) )