diff --git a/js/admin.js b/js/admin.js index 893411167..c73045f95 100644 --- a/js/admin.js +++ b/js/admin.js @@ -30,7 +30,7 @@ $(document).ready(function() { $('#activity_email_enabled').on('change', function() { OCP.AppConfig.setValue( 'activity', 'enable_email', - $(this).attr('checked') === 'checked' ? 'yes' : 'no' + $(this).prop('checked') === 'checked' ? 'yes' : 'no' ); }) });