update jquery attr into prop method for checked and disabled properties

This commit is contained in:
Florian BLOUET
2015-11-25 16:40:45 +01:00
parent 454f9d4db0
commit 5d2735cd0a
18 changed files with 78 additions and 73 deletions

View File

@@ -61,10 +61,10 @@
});
$('#edit_pub_public').bind('change', function(){
if($(this).attr('checked') === true)
$('#edit_pub_base_id').attr('disabled', 'disabled');
if($(this).prop('checked') === true)
$('#edit_pub_base_id').prop('disabled', true);
else
$('#edit_pub_base_id').removeAttr('disabled');
$('#edit_pub_base_id').prop('disabled', false);
});
});
</script>