X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=js%2Femailsettings.js;h=f287c2d711104fc3f05fd8cd09ed3bcec5349edb;hb=6b147175bb90b182bdc1188a5537ddfd0d181303;hp=c7f85fe9aec2b9ba3d1e19411449488094bd937d;hpb=7a9777df053a9007b5eaa71f5437584065b615a5;p=quix0rs-gnu-social.git diff --git a/js/emailsettings.js b/js/emailsettings.js index c7f85fe9ae..f287c2d711 100644 --- a/js/emailsettings.js +++ b/js/emailsettings.js @@ -1,16 +1,16 @@ $(function() { function toggleIncomingOptions() { - var enabled = $('#emailpost').attr('checked'); + var enabled = $('#emailpost').prop('checked', true); if (enabled) { // Note: button style currently does not respond to disabled in our main themes. // Graying out the whole section with a 50% transparency will do for now. :) // @todo: add a general 'disabled' class style to the base themes. - $('#emailincoming').removeAttr('style') - .find('input').removeAttr('disabled'); + $('#emailincoming').css('opacity', '') + .find('input').prop('disabled', false); } else { - $('#emailincoming').attr('style', 'opacity: 0.5') - .find('input').attr('disabled', 'disabled'); + $('#emailincoming').css('opacity', '0.5') + .find('input').prop('disabled', true); } }