FIx static front page selector in Settings-Writing, props JDTrower duck_, fixes #17421

git-svn-id: http://svn.automattic.com/wordpress/trunk@17923 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-05-14 00:43:58 +00:00
parent 0a26ef9d38
commit 44cfe9d8b3

View File

@ -30,7 +30,7 @@ function add_js() {
staticPage = section.find('input:radio[value="page"]'),
selects = section.find('select'),
check_disabled = function(){
selects.attr('disabled', staticPage.is(':checked') ? '' : 'disabled');
selects.prop( 'disabled', ! staticPage.prop('checked') );
};
check_disabled();
section.find('input:radio').change(check_disabled);