only show connection checks results if there are errors, fix #11476

remotes/origin/etag-endpoint
Jan-Christoph Borchardt 10 years ago
parent e188f0e436
commit 04a4df5065
  1. 7
      settings/css/settings.css
  2. 3
      settings/js/admin.js
  3. 1
      settings/templates/admin.php

@ -394,16 +394,9 @@ doesnotexist:-o-prefocus, .strengthify-wrapper {
#postsetupchecks .loading { #postsetupchecks .loading {
height: 50px; height: 50px;
}
#postsetupchecks.section .loading {
background-position: left center; background-position: left center;
} }
#postsetupchecks .hint {
margin-top: 15px;
}
#admin-tips li { #admin-tips li {
list-style: initial; list-style: initial;
} }

@ -140,11 +140,10 @@ $(document).ready(function(){
var $errorsEl; var $errorsEl;
$el.find('.loading').addClass('hidden'); $el.find('.loading').addClass('hidden');
if (errors.length === 0) { if (errors.length === 0) {
$el.find('.success').removeClass('hidden');
} else { } else {
$errorsEl = $el.find('.errors'); $errorsEl = $el.find('.errors');
for (var i = 0; i < errors.length; i++ ) { for (var i = 0; i < errors.length; i++ ) {
$errorsEl.append('<li class="setupwarning">' + errors[i] + '</li>'); $errorsEl.append('<li>' + errors[i] + '</li>');
} }
$errorsEl.removeClass('hidden'); $errorsEl.removeClass('hidden');
$el.find('.hint').removeClass('hidden'); $el.find('.hint').removeClass('hidden');

@ -172,7 +172,6 @@ if ($_['cronErrors']) {
<div id="postsetupchecks"> <div id="postsetupchecks">
<div class="loading"></div> <div class="loading"></div>
<div class="success hidden"><?php p($l->t('No problems found'));?></div>
<ul class="errors hidden"></ul> <ul class="errors hidden"></ul>
<p class="hint hidden"> <p class="hint hidden">
<?php print_unescaped($l->t('Please double check the <a target="_blank" href="%s">installation guides ↗</a>, and check for any errors or warnings in the <a href="#log-section">log</a>.', link_to_docs('admin-install'))); ?> <?php print_unescaped($l->t('Please double check the <a target="_blank" href="%s">installation guides ↗</a>, and check for any errors or warnings in the <a href="#log-section">log</a>.', link_to_docs('admin-install'))); ?>

Loading…
Cancel
Save