Changeset 9560 for trunk/wp-admin/upload.php
- Timestamp:
- 11/07/2008 03:13:50 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upload.php
r9557 r9560 451 451 452 452 <script type="text/javascript"> 453 jQuery(function($) { 454 $('#doaction').click(function(e){455 if ( 'attach' == $('#posts-filter select[name="action"]').val() ){456 e.preventDefault();457 findPosts.open();458 }459 });460 $('#doaction2').click(function(e) {461 if ( 'attach' == $('#posts-filter select[name="action2"]').val()) {453 /* <![CDATA[ */ 454 (function($){ 455 $(document).ready(function(){ 456 $('#doaction, #doaction2').click(function(e){ 457 if ( $('select[name^="action"]').val() == 'delete' ) { 458 var n = $('#the-list input[type="checkbox"]:checked').length; 459 var m = n > 1 ? '<?php echo js_escape(__("You are about to delete the selected attachments.\n 'Cancel' to stop, 'OK' to delete.")); ?>' : '<?php echo js_escape(__("You are about to delete the selected attachment.\n 'Cancel' to stop, 'OK' to delete.")); ?>'; 460 return showNotice.warn(m); 461 } else if ( $('select[name^="action"]').val() == 'attach' ) { 462 462 e.preventDefault(); 463 463 findPosts.open(); … … 465 465 }); 466 466 }); 467 })(jQuery); 468 /* ]]> */ 467 469 </script> 470 468 471 <?php 469 472
Note: See TracChangeset
for help on using the changeset viewer.