diff options
Diffstat (limited to 'public/js/gogs.js')
-rw-r--r-- | public/js/gogs.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/public/js/gogs.js b/public/js/gogs.js index 7ca90b2826..226bb6bae5 100644 --- a/public/js/gogs.js +++ b/public/js/gogs.js @@ -187,9 +187,24 @@ function initInstall() { } }); + // TODO: better handling of exclusive relations. $('#offline-mode input').change(function () { if ($(this).is(':checked')) { $('#disable-gravatar').checkbox('check'); + $('#federated-avatar-lookup').checkbox('uncheck'); + } + }); + $('#disable-gravatar input').change(function () { + if ($(this).is(':checked')) { + $('#federated-avatar-lookup').checkbox('uncheck'); + } else { + $('#offline-mode').checkbox('uncheck'); + } + }); + $('#federated-avatar-lookup input').change(function () { + if ($(this).is(':checked')) { + $('#disable-gravatar').checkbox('uncheck'); + $('#offline-mode').checkbox('uncheck'); } }); $('#disable-registration input').change(function () { |