mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13740] Fix message element creation in JS
PHPBB3-13740
This commit is contained in:
@@ -46,12 +46,12 @@
|
||||
var $title, $description, $msgElement, arraySize = messages.length;
|
||||
for (var i = 0; i < arraySize; i++) {
|
||||
$msgElement = $('<div />');
|
||||
$title = $(document.createElement('strong'));
|
||||
$title = $('<strong />');
|
||||
$title.text(messages[i].title);
|
||||
$msgElement.append($title);
|
||||
|
||||
if (messages[i].hasOwnProperty('description')) {
|
||||
$description = $(document.createElement('p'));
|
||||
$description = $('<p />');
|
||||
$description.html(messages[i].description);
|
||||
$msgElement.append($description);
|
||||
}
|
||||
|
Reference in New Issue
Block a user