Commit c7212560 authored by catch's avatar catch

Issue #1906008 by nod_: Fixed JS error when visiting /core/install.php on already installed Drupal.

parent d234ff8e
......@@ -17,11 +17,13 @@
function installStepsSetup () {
var steps = document.querySelectorAll('.task-list li');
var branding = document.querySelector('#branding');
var stepIndicator = document.createElement('div');
stepIndicator.className = 'step-indicator';
stepIndicator.innerHTML = findActiveStep(steps) + '/' + steps.length;
branding.appendChild(stepIndicator);
if (steps.length) {
var branding = document.querySelector('#branding');
var stepIndicator = document.createElement('div');
stepIndicator.className = 'step-indicator';
stepIndicator.innerHTML = findActiveStep(steps) + '/' + steps.length;
branding.appendChild(stepIndicator);
}
}
if (document.addEventListener) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment