2010-12-01 22:23:56 +00:00
|
|
|
$(function() {
|
|
|
|
|
|
|
|
function toggleIncomingOptions() {
|
2011-12-23 19:54:58 +00:00
|
|
|
var enabled = $('#emailpost').prop('checked', true);
|
2010-12-01 22:23:56 +00:00
|
|
|
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.
|
2011-12-23 19:54:58 +00:00
|
|
|
$('#emailincoming').css('opacity', '')
|
|
|
|
.find('input').prop('disabled', false);
|
2010-12-01 22:23:56 +00:00
|
|
|
} else {
|
2011-12-23 19:54:58 +00:00
|
|
|
$('#emailincoming').css('opacity', '0.5')
|
|
|
|
.find('input').prop('disabled', true);
|
2010-12-01 22:23:56 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
toggleIncomingOptions();
|
|
|
|
|
|
|
|
$('#emailpost').click(function() {
|
|
|
|
toggleIncomingOptions();
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|