[admin settings] hide security warnings if empty

* fixes #15257
This commit is contained in:
Morris Jobke 2015-08-18 16:42:25 +02:00
parent 2411662095
commit 70bce7a54a
1 changed files with 4 additions and 0 deletions

View File

@ -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');