3 function toggleIncomingOptions() {
4 var enabled = $('#emailpost').prop('checked', true);
6 // Note: button style currently does not respond to disabled in our main themes.
7 // Graying out the whole section with a 50% transparency will do for now. :)
8 // @todo: add a general 'disabled' class style to the base themes.
9 $('#emailincoming').css('opacity', '')
10 .find('input').prop('disabled', false);
12 $('#emailincoming').css('opacity', '0.5')
13 .find('input').prop('disabled', true);
17 toggleIncomingOptions();
19 $('#emailpost').click(function() {
20 toggleIncomingOptions();