Skip to content

Commit

Permalink
[fix] undefined warnings on installation
Browse files Browse the repository at this point in the history
  • Loading branch information
phproberto committed Dec 9, 2014
1 parent cc834cb commit 8b0d55e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions media/system/js/core-uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,16 @@ Joomla.renderMessages = function(messages) {
messagesBox.className = 'alert alert-' + type;

// Title
var titleWrapper = document.createElement('h4');
titleWrapper.className = 'alert-heading';
titleWrapper.innerHTML = Joomla.JText._(type);
var title = Joomla.JText._(type);

messagesBox.appendChild(titleWrapper)
// Skip titles with untranslated strings
if (typeof title != 'undefined') {
var titleWrapper = document.createElement('h4');
titleWrapper.className = 'alert-heading';
titleWrapper.innerHTML = Joomla.JText._(type);

messagesBox.appendChild(titleWrapper)
}

// Add messages to the message box
for (var i = typeMessages.length - 1; i >= 0; i--) {
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 8b0d55e

Please sign in to comment.