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:
Andrew Ozz
2009-01-12 13:43:17 +00:00
parent 23d722d40a
commit 80fb5c79ce
52 changed files with 583 additions and 675 deletions
+1 -21
View File
@@ -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');
?>