Ticket #20855: 20855.3.diff
File 20855.3.diff, 1.9 KB (added by , 12 years ago) |
---|
-
wp-admin/js/custom-background.js
61 61 $(this).fadeOut(2); 62 62 }); 63 63 }); 64 65 toggleUploadButton = function() { 66 $('#upload-form #submit').prop( 'disabled', '' === $('#upload').val() ); 67 }; 68 69 toggleUploadButton(); 70 $('#upload').change( toggleUploadButton ); 64 71 }); 65 72 66 })(jQuery); 67 No newline at end of file 73 })(jQuery); -
wp-admin/js/custom-header.js
1 (function($) { 2 3 $(document).ready( function() { 4 toggleUploadButton = function() { 5 $('#upload-form #submit').prop( 'disabled', '' === $('#upload').val() ); 6 }; 7 8 toggleUploadButton(); 9 $('#upload').change( toggleUploadButton ); 10 }); 11 12 })(jQuery); -
wp-includes/script-loader.php
440 440 'saveAlert' => __('The changes you made will be lost if you navigate away from this page.') 441 441 ) ); 442 442 443 $scripts->add( 'custom-background', "/wp-admin/js/custom-background$suffix.js", array('farbtastic'), false, 1 ); 444 $scripts->add( 'media-gallery', "/wp-admin/js/media-gallery$suffix.js", array('jquery'), false, 1 ); 443 $scripts->add( 'custom-header', "/wp-admin/js/custom-header$suffix.js", array( 'jquery' ), false, 1 ); 444 $scripts->add( 'custom-background', "/wp-admin/js/custom-background$suffix.js", array( 'farbtastic' ), false, 1 ); 445 $scripts->add( 'media-gallery', "/wp-admin/js/media-gallery$suffix.js", array( 'jquery' ), false, 1 ); 445 446 } 446 447 } 447 448