diff --git a/addons/member_communication/tpl/member_communication.js b/addons/member_communication/tpl/member_communication.js index d2245efa0..5264ee9a0 100644 --- a/addons/member_communication/tpl/member_communication.js +++ b/addons/member_communication/tpl/member_communication.js @@ -1,29 +1,18 @@ (function($){ - window.xeNotifyMessage = function(text, count){ var $bar; - - $bar = $('div.notifyMessage'); + $bar = $('div.message.info'); if(!$bar.length) { - $bar = $('
') + $bar = $('
') .hide() - .css({ - position : 'absolute', - background : '#ff0', - border : '1px solid #990', - textAlign : 'center' - }) - .appendTo(document.body); + .prependTo(document.body); } - text = text.replace('%d', count); - h = $bar.html(''+text+'').height(); - $bar.css('top', -h-4).show().animate({top:0}); - + h = $bar.html('

'+text+'

').height(); + $bar.show().animate({top:0}); // hide after 10 seconds setTimeout(function(){ - $bar.animate({top:-h-4}, function(){ $bar.hide() }); + $bar.slideUp(); }, 10000); }; - })(jQuery);