FIx static front page selector in Settings-Writing, props JDTrower duck_, fixes #17421
git-svn-id: https://develop.svn.wordpress.org/trunk@17923 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
343de36521
commit
73fe19d286
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user