Fix inverted logic. props duck_. fixes #15205.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8303b3c14a
commit
6bcac04c29
|
@ -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.attr('disabled', staticPage.is(':checked') ? '' : 'disabled');
|
||||
};
|
||||
check_disabled();
|
||||
section.find('input:radio').change(check_disabled);
|
||||
|
|
Loading…
Reference in New Issue