aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 23:53:35 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-01 23:53:35 +0000
commitce3f2c77747298cc0b1d0d8ca904989b3e6cafaf (patch)
tree4e2c83b26a1c9fdfbd491f8bd1b9342a9ce6e70c /js
parentac7bd5544479eb8a2878351d0cbe99c0a4a0564c (diff)
downloadelgg-ce3f2c77747298cc0b1d0d8ca904989b3e6cafaf.tar.gz
elgg-ce3f2c77747298cc0b1d0d8ca904989b3e6cafaf.tar.bz2
cleaned up appending system messages since <ul> will always be there
git-svn-id: http://code.elgg.org/elgg/trunk@8554 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'js')
-rw-r--r--js/lib/elgglib.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/js/lib/elgglib.js b/js/lib/elgglib.js
index 7a329621b..12e89392f 100644
--- a/js/lib/elgglib.js
+++ b/js/lib/elgglib.js
@@ -296,7 +296,7 @@ elgg.system_messages = function(msgs, delay, type) {
var classes = ['elgg-message'],
messages_html = [],
appendMessage = function(msg) {
- messages_html.push('<li class="' + classes.join(' ') + '"><div class="elgg-text"><p>' + msg + '</p></div></li>');
+ messages_html.push('<li class="' + classes.join(' ') + '"><p>' + msg + '</p></li>');
},
systemMessages = $('ul.elgg-system-messages'),
i;
@@ -320,11 +320,6 @@ elgg.system_messages = function(msgs, delay, type) {
msgs.forEach(appendMessage);
- // create the system messages ul element if needed
- if (!systemMessages.length) {
- systemMessages = $('<ul class="elgg-system-messages"></ul>').appendTo('body');
- }
-
$(messages_html.join('')).appendTo(systemMessages)
.animate({opacity: '1.0'}, delay).fadeOut('slow');
};