Changeset 15946 for trunk/wp-admin/options-reading.php
- Timestamp:
- 10/24/2010 07:20:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-reading.php
r15810 r15946 15 15 $title = __( 'Reading Settings' ); 16 16 $parent_file = 'options-general.php'; 17 18 /** 19 * Display JavaScript on the page. 20 * 21 * @package WordPress 22 * @subpackage Reading_Settings_Screen 23 */ 24 function add_js() { 25 ?> 26 <script type="text/javascript"> 27 //<![CDATA[ 28 jQuery(document).ready(function($){ 29 var section = $('#front-static-pages'), 30 staticPage = section.find('input:radio[value="page"]'), 31 selects = section.find('select'), 32 check_disabled = function(){ 33 selects.attr('disabled', staticPage.is(':checked') ? 'disabled' : ''); 34 }; 35 check_disabled(); 36 section.find('input:radio').change(check_disabled); 37 }); 38 //]]> 39 </script> 40 <?php 41 } 42 add_action('admin_head', 'add_js'); 17 43 18 44 add_contextual_help($current_screen,
Note: See TracChangeset
for help on using the changeset viewer.