Media JS: Improve markup and CSS of the modal view's title.

Also improves the accuracy of closing the modal when the backdrop is clicked (which became error-prone around the title bar in [22144]).

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22158 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-10-10 09:40:22 +00:00
parent 04143f286a
commit d4f1bc45ac
2 changed files with 18 additions and 22 deletions
+2 -4
View File
@@ -1296,10 +1296,8 @@ function wp_print_media_templates( $attachment ) {
?>
<script type="text/html" id="tmpl-media-modal">
<div class="media-modal">
<div class="media-modal-header">
<h3><%- title %></h3>
<a class="media-modal-close" href="" title="<?php esc_attr_e('Close'); ?>">&times;</a>
</div>
<h3 class="media-modal-title"><%- title %></h3>
<a class="media-modal-close" href="" title="<?php esc_attr_e('Close'); ?>">&times;</a>
<div class="media-modal-content"></div>
</div>
<div class="media-modal-backdrop"></div>