diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-10 11:04:24 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-24 11:26:54 +0200 |
commit | 12ec0dfe3cb9d960aabed5d1c92ded7c0a745b02 (patch) | |
tree | e99f1c352e33e07dd02331184360683b69c5eeba /apps | |
parent | 823e4911c9c543abf7143fbbe2287b5cd5f139ca (diff) | |
download | nextcloud-server-12ec0dfe3cb9d960aabed5d1c92ded7c0a745b02.tar.gz nextcloud-server-12ec0dfe3cb9d960aabed5d1c92ded7c0a745b02.zip |
The setting only affects available core updates
Diffstat (limited to 'apps')
-rw-r--r-- | apps/updatenotification/js/admin.js | 4 | ||||
-rw-r--r-- | apps/updatenotification/templates/admin.php | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/apps/updatenotification/js/admin.js b/apps/updatenotification/js/admin.js index e5c942fbdab..3ca45a191d4 100644 --- a/apps/updatenotification/js/admin.js +++ b/apps/updatenotification/js/admin.js @@ -44,9 +44,9 @@ $(document).ready(function(){ var newChannel = $('#release-channel').find(":selected").val(); if (newChannel === 'git' || newChannel === 'daily') { - $('#oca_updatenotification_groups').addClass('hidden'); + $('#oca_updatenotification_groups em').removeClass('hidden'); } else { - $('#oca_updatenotification_groups').removeClass('hidden'); + $('#oca_updatenotification_groups em').addClass('hidden'); } $.post( diff --git a/apps/updatenotification/templates/admin.php b/apps/updatenotification/templates/admin.php index e74ed23a94c..5974b106f72 100644 --- a/apps/updatenotification/templates/admin.php +++ b/apps/updatenotification/templates/admin.php @@ -41,9 +41,13 @@ </p> - <p id="oca_updatenotification_groups" class="<?php if (in_array($currentChannel, ['daily', 'git'])) p('hidden'); ?>"> + <p id="oca_updatenotification_groups"> <br /> <?php p($l->t('Notify members of the following groups about available updates:')); ?> <input name="oca_updatenotification_groups_list" type="hidden" id="oca_updatenotification_groups_list" value="<?php p($_['notify_groups']) ?>" style="width: 400px"> + <em class="<?php if (!in_array($currentChannel, ['daily', 'git'])) p('hidden'); ?>"> + <br /> + <?php p($l->t('Only notification for app updates are available, because the selected update channel for ownCloud itself does not allow notifications.')); ?> + </em> </p> </form> |