From 624b5c1290c1fd485aac62f22ce6176424a06a99 Mon Sep 17 00:00:00 2001 From: ChanMyeong Date: Mon, 27 Feb 2012 05:13:32 +0000 Subject: [PATCH] issue 1003 fixed. Showing message information more clearly. git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10204 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .../tpl/member_communication.js | 23 +++++-------------- 1 file changed, 6 insertions(+), 17 deletions(-) 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);