issue 160, apply cdn to member_communication`s js file, fixed a bug related convertion character

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9323 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-26 05:32:06 +00:00
parent b9a4990592
commit f555181539
2 changed files with 2 additions and 1 deletions

View file

@ -32,7 +32,7 @@
$new_message_count = trim(FileHandler::readFile($flag_file));
FileHandler::removeFile($flag_file);
Context::loadLang('./addons/member_communication/lang');
Context::loadFile(array('./addons/member_communication/tpl/member_communication.js'));
Context::loadFile(array('./addons/member_communication/tpl/member_communication.js'), true);
$text = preg_replace('@\r?\n@', '\\n', addslashes(Context::getLang('alert_new_message_arrived')));
$link = Context::getRequestUri().'?module=communication&act=dispCommunicationNewMessage';

View file

@ -16,6 +16,7 @@ window.xeNotifyMessage = function(text, count){
.appendTo(document.body);
}
text = text.replace('%d', count);
h = $bar.html('<a href="'+current_url.setQuery('act','dispCommunicationMessages')+'">'+text+'</a>').height();
$bar.css('top', -h-4).show().animate({top:0});