forked from GNUsocial/gnu-social
Changed .attr() to .prop() for checked and disabled. Removed "style" removal which I assume was tied to opacity setting on line 9. Replaced "style" setting via attr() on line 12 with css().
This commit is contained in:
parent
6fa9062d28
commit
af4f2a18c8
@ -1,16 +1,16 @@
|
|||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
function toggleIncomingOptions() {
|
function toggleIncomingOptions() {
|
||||||
var enabled = $('#emailpost').attr('checked');
|
var enabled = $('#emailpost').prop('checked', true);
|
||||||
if (enabled) {
|
if (enabled) {
|
||||||
// Note: button style currently does not respond to disabled in our main themes.
|
// 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. :)
|
// Graying out the whole section with a 50% transparency will do for now. :)
|
||||||
// @todo: add a general 'disabled' class style to the base themes.
|
// @todo: add a general 'disabled' class style to the base themes.
|
||||||
$('#emailincoming').removeAttr('style')
|
$('#emailincoming').css('opacity', '')
|
||||||
.find('input').removeAttr('disabled');
|
.find('input').prop('disabled', false);
|
||||||
} else {
|
} else {
|
||||||
$('#emailincoming').attr('style', 'opacity: 0.5')
|
$('#emailincoming').css('opacity', '0.5')
|
||||||
.find('input').attr('disabled', 'disabled');
|
.find('input').prop('disabled', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user