Fix inverted logic. props duck_. fixes #15205.
git-svn-id: https://develop.svn.wordpress.org/trunk@15959 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c1d8f9cd69
commit
d68060204a
@ -30,7 +30,7 @@ function add_js() {
|
|||||||
staticPage = section.find('input:radio[value="page"]'),
|
staticPage = section.find('input:radio[value="page"]'),
|
||||||
selects = section.find('select'),
|
selects = section.find('select'),
|
||||||
check_disabled = function(){
|
check_disabled = function(){
|
||||||
selects.attr('disabled', staticPage.is(':checked') ? 'disabled' : '');
|
selects.attr('disabled', staticPage.is(':checked') ? '' : 'disabled');
|
||||||
};
|
};
|
||||||
check_disabled();
|
check_disabled();
|
||||||
section.find('input:radio').change(check_disabled);
|
section.find('input:radio').change(check_disabled);
|
||||||
|
Loading…
Reference in New Issue
Block a user