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