Reset the media modal to the library view after inserting a gallery. fixes #22151, see #21390, #21809.

git-svn-id: https://develop.svn.wordpress.org/trunk@22156 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith 2012-10-10 08:47:15 +00:00
parent db21ce7189
commit a04930b340

View File

@ -122,6 +122,9 @@ var tb_position;
shortcode = view.gallery.shortcode( selection );
this.insert( shortcode.string() );
// Reset the workflow view to the library.
workflow.render('library');
}, this );
return workflow;