mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
Cleanup js files and prepare for concatenating, move most inline js to files
git-svn-id: https://develop.svn.wordpress.org/trunk@10348 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-21
@@ -136,6 +136,7 @@ if ( isset($_GET['detached']) ) {
|
||||
list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query();
|
||||
}
|
||||
|
||||
wp_enqueue_script('media');
|
||||
require_once('admin-header.php'); ?>
|
||||
|
||||
<?php
|
||||
@@ -410,26 +411,5 @@ if ( $page_links )
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
(function($){
|
||||
$(document).ready(function(){
|
||||
$('#doaction, #doaction2').click(function(e){
|
||||
if ( $('select[name^="action"]').val() == 'delete' ) {
|
||||
var m = '<?php echo js_escape(__("You are about to delete the selected attachments.\n 'Cancel' to stop, 'OK' to delete.")); ?>';
|
||||
return showNotice.warn(m);
|
||||
} else if ( $('select[name^="action"]').val() == 'attach' ) {
|
||||
e.preventDefault();
|
||||
findPosts.open();
|
||||
}
|
||||
});
|
||||
});
|
||||
})(jQuery);
|
||||
columns.init('upload');
|
||||
/* ]]> */
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
include('admin-footer.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user