mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/13740] Fix message element creation in JS
PHPBB3-13740
This commit is contained in:
parent
b4552a8ba3
commit
0d88b3f9e9
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue