Skip to content

Commit

Permalink
Make HTML structure consistent for Joomla.renderMessages() (Fix #5602)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Babker committed Jun 27, 2015
1 parent 262d527 commit c1c456b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion media/system/js/core-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ Joomla.renderMessages = function(messages) {
Joomla.removeMessages();

var messageContainer = document.getElementById('system-message-container');
var messageInner = document.createElement('div');
messageInner.id = 'system-message';

for (var type in messages) {
if (messages.hasOwnProperty(type)) {
Expand Down Expand Up @@ -164,9 +166,11 @@ Joomla.renderMessages = function(messages) {
messagesBox.appendChild(messageWrapper);
}

messageContainer.appendChild(messagesBox);
messageInner.appendChild(messagesBox);
}
}

messageContainer.appendChild(messageInner);
};


Expand Down
2 changes: 1 addition & 1 deletion media/system/js/core.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c1c456b

Please sign in to comment.