mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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:
parent
0a26ef9d38
commit
44cfe9d8b3
@ -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…
Reference in New Issue
Block a user