diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-08-18 16:42:25 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-08-18 16:42:25 +0200 |
commit | 70bce7a54aa6003ed7bab6c4be8966b555a282b5 (patch) | |
tree | 6f262e14a1fbf6981a9d4617e912d0cda1a6d11f /settings | |
parent | 2411662095142ce93d99f04d71f25b870109db62 (diff) | |
download | nextcloud-server-70bce7a54aa6003ed7bab6c4be8966b555a282b5.tar.gz nextcloud-server-70bce7a54aa6003ed7bab6c4be8966b555a282b5.zip |
[admin settings] hide security warnings if empty
* fixes #15257
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/admin.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/js/admin.js b/settings/js/admin.js index aa228e76be7..2f0896c9530 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -177,6 +177,10 @@ $(document).ready(function(){ var $el = $('#postsetupchecks'); $el.find('.loading').addClass('hidden'); if (messages.length === 0) { + var securityWarning = $('#security-warning'); + if (securityWarning.children('ul').children().length === 0) { + securityWarning.addClass('hidden'); + } } else { var $errorsEl = $el.find('.errors'); var $warningsEl = $el.find('.warnings'); |