Make WordPress Core


Ignore:
Timestamp:
01/12/2009 01:43:17 PM (16 years ago)
Author:
azaozz
Message:

Cleanup js files and prepare for concatenating, move most inline js to files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

    r10150 r10348  
    137137}
    138138
     139wp_enqueue_script('media');
    139140require_once('admin-header.php'); ?>
    140141
     
    411412</div>
    412413
    413 <script type="text/javascript">
    414 /* <![CDATA[ */
    415 (function($){
    416     $(document).ready(function(){
    417         $('#doaction, #doaction2').click(function(e){
    418             if ( $('select[name^="action"]').val() == 'delete' ) {
    419                 var m = '<?php echo js_escape(__("You are about to delete the selected attachments.\n  'Cancel' to stop, 'OK' to delete.")); ?>';
    420                 return showNotice.warn(m);
    421             } else if ( $('select[name^="action"]').val() == 'attach' ) {
    422                 e.preventDefault();
    423                 findPosts.open();
    424             }
    425         });
    426     });
    427 })(jQuery);
    428 columns.init('upload');
    429 /* ]]> */
    430 </script>
    431 
    432 <?php
    433 
     414<?php
    434415include('admin-footer.php');
    435 ?>
Note: See TracChangeset for help on using the changeset viewer.