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:
nacin 2010-10-25 08:27:49 +00:00
parent 8303b3c14a
commit 6bcac04c29
1 changed files with 1 additions and 1 deletions

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.attr('disabled', staticPage.is(':checked') ? '' : 'disabled');
};
check_disabled();
section.find('input:radio').change(check_disabled);