forked from GNUsocial/gnu-social
[CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
This adds a composer.json for all dependencies that are available
This commit is contained in:
23
public/js/emailsettings.js
Normal file
23
public/js/emailsettings.js
Normal file
@@ -0,0 +1,23 @@
|
||||
$(function() {
|
||||
|
||||
function toggleIncomingOptions() {
|
||||
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').css('opacity', '')
|
||||
.find('input').prop('disabled', false);
|
||||
} else {
|
||||
$('#emailincoming').css('opacity', '0.5')
|
||||
.find('input').prop('disabled', true);
|
||||
}
|
||||
}
|
||||
|
||||
toggleIncomingOptions();
|
||||
|
||||
$('#emailpost').click(function() {
|
||||
toggleIncomingOptions();
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user