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

git-svn-id: http://core.svn.wordpress.org/trunk@22156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Daryl Koopersmith 2012-10-10 08:47:15 +00:00
parent 70bd368ad8
commit ebc9a34650
1 changed files with 3 additions and 0 deletions

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;