reverse merge from 1.6.0 (r10060)

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10701 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-05-16 09:52:40 +00:00
parent 696a3164c3
commit fe75a29691
2 changed files with 11 additions and 5 deletions

View file

@ -6,13 +6,19 @@ window.xeNotifyMessage = function(text, count){
$bar = $('<div class="message info" />')
.hide()
.prependTo(document.body);
.css({
'position' : 'absolute',
'z-index' : '100',
})
.appendTo(document.body);
}
text = text.replace('%d', count);
h = $bar.html('<p><a href="'+current_url.setQuery('act','dispCommunicationMessages')+'">'+text+'</a></p>').height();
$bar.show().animate({top:0});
$bar.css('top', -h-4).show().animate({top:0});
// hide after 10 seconds
setTimeout(function(){
$bar.slideUp();
}, 10000);
}, 5000);
};
})(jQuery);