mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
알림 메시지 클릭시 2초 후에 메세지 닫기
This commit is contained in:
parent
cb206acfc0
commit
622a6d9324
1 changed files with 8 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
(function($){
|
||||
var $bar;
|
||||
window.xeNotifyMessage = function(text, count){
|
||||
var $bar;
|
||||
$bar = $('div.message.info');
|
||||
if(!$bar.length) {
|
||||
$bar = $('<div class="message info" />')
|
||||
|
|
@ -13,7 +13,13 @@
|
|||
}
|
||||
|
||||
text = text.replace('%d', count);
|
||||
$bar.html('<p><a href="'+current_url.setQuery('module','').setQuery('act','dispCommunicationNewMessage')+'" onclick="popopen(this.href, \'popup\'); return false;">'+text+'</a></p>').height();
|
||||
$bar.html('<p><a href="'+current_url.setQuery('module','').setQuery('act','dispCommunicationNewMessage')+'" onclick="popopen(this.href, \'popup\');xeNotifyMessageClose(); return false;">'+text+'</a></p>').height();
|
||||
$bar.show().animate({top:0});
|
||||
};
|
||||
|
||||
window.xeNotifyMessageClose = function(){
|
||||
setTimeout(function(){
|
||||
$bar.slideUp();
|
||||
}, 2000);
|
||||
};
|
||||
})(jQuery);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue