mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
update jquery attr into prop method for checked and disabled properties
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user