Media: Add a base view class.

* Centralizes view and subview management, unifying several disjointed constructs.
* Utilizes the `dispose` functionality found in Backbone master, providing a standard method for memory management.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22648 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Daryl Koopersmith
2012-11-19 00:36:47 +00:00
parent d25a4e9795
commit 101c5a5371
3 changed files with 190 additions and 55 deletions
+7
View File
@@ -1391,6 +1391,13 @@ function wp_enqueue_media( $args = array() ) {
*/
function wp_print_media_templates( $attachment ) {
?>
<script type="text/html" id="tmpl-media-frame">
<div class="media-frame-menu"></div>
<div class="media-frame-content"></div>
<div class="media-frame-sidebar"></div>
<div class="media-frame-toolbar"></div>
</script>
<script type="text/html" id="tmpl-media-modal">
<div class="media-modal">
<h3 class="media-modal-title">{{ data.title }}</h3>