This commit is contained in:
Qiao 2014-11-26 23:09:17 +08:00
parent 3602d8a987
commit f87393933c
1 changed files with 8 additions and 2 deletions

View File

@ -402,7 +402,13 @@ var wide = {
switch (data.cmd) {
case 'run': // 正在运行
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '<pre>' + data.output + '</pre>');
if(!wide.curProcessId){
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '<pre>' + data.output + '</pre>');
}else{
bottomGroup.fillOutput($('.bottom-window-group .output > div').html().replace(/<\/pre>$/g, data.output + '</pre>');
}
wide.curProcessId = data.pid;
break;
@ -706,4 +712,4 @@ $(document).ready(function () {
editors.init();
windows.init();
bottomGroup.init();
});
});