mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 13:30:25 +02:00
[ticket/13740] Add success message when install finished
PHPBB3-13740
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
|
||||
if (messages[i].hasOwnProperty('description')) {
|
||||
$description = $(document.createElement('p'));
|
||||
$description.text(messages[i].description);
|
||||
$description.html(messages[i].description);
|
||||
$msgElement.append($description);
|
||||
}
|
||||
|
||||
@@ -69,6 +69,10 @@
|
||||
$msgElement.addClass('log');
|
||||
$logContainer.append($msgElement);
|
||||
break;
|
||||
case 'success':
|
||||
$msgElement.addClass('successbox');
|
||||
$errorContainer.prepend($msgElement);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -201,6 +205,10 @@
|
||||
addMessage('log', responseObject.logs);
|
||||
}
|
||||
|
||||
if (responseObject.hasOwnProperty('success')) {
|
||||
addMessage('success', responseObject.success);
|
||||
}
|
||||
|
||||
if (responseObject.hasOwnProperty('form')) {
|
||||
addForm(responseObject.form);
|
||||
}
|
||||
|
Reference in New Issue
Block a user