修改bug

pull/2/head
guanghongwei 2014-11-12 18:45:26 +08:00
parent 22c7cb6c7d
commit 61ac985e09
2 changed files with 2 additions and 1 deletions

View File

@ -2,3 +2,4 @@
./manage.py runserver 0.0.0.0:80 &> access.log &
./log_handler.py &> handler.log &
node ./websocket/index.js &

View File

@ -74,7 +74,7 @@
//去除log中的颜色控制字符
var regx = /\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]/g;
tag.append('<p>'+escapeString(obj.content.replace(regx,''))+'</p>');
tag.animate({ scrollTop: tag[0].scrollHeight}, 1000);
tag.animate({ scrollTop: tag[0].scrollHeight}, 1);
});
return tag[0];
} ,