options_reading_add_js()

 

File: wp-admin/includes/options.php

function options_reading_add_js() {
	?>
<script type="text/javascript">
	jQuery(document).ready(function($){
		var section = $('#front-static-pages'),
			staticPage = section.find('input:radio[value="page"]'),
			selects = section.find('select'),
			check_disabled = function(){
				selects.prop( 'disabled', ! staticPage.prop('checked') );
			};
		check_disabled();
		 section.find('input:radio').change(check_disabled);
	});
</script>
	<?php
}

参数:options_reading_add_js()

{acontent5}{acontent3}

You must log in before being able to contribute a note or feedback.

74.47% (35) 次Baidu访问
23.40% (11) 次Sogou访问
2.13% (1) 次sm访问
  • 蜘蛛:Baidu,35次,更新时间:2019-05-15 08:45:45
  • 蜘蛛:Sogou,11次,更新时间:2019-05-21 16:42:26
  • 蜘蛛:sm,1次,更新时间:2019-05-14 12:04:25

参与评论