From f87393933c12ba5f47bbf34f6e52ee0b98654912 Mon Sep 17 00:00:00 2001 From: Qiao Date: Wed, 26 Nov 2014 23:09:17 +0800 Subject: [PATCH] #163 --- static/js/wide.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/static/js/wide.js b/static/js/wide.js index 36b1c09..0d5b80d 100644 --- a/static/js/wide.js +++ b/static/js/wide.js @@ -402,7 +402,13 @@ var wide = { switch (data.cmd) { case 'run': // 正在运行 - bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '
' + data.output + '
'); + + if(!wide.curProcessId){ + bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '
' + data.output + '
'); + }else{ + bottomGroup.fillOutput($('.bottom-window-group .output > div').html().replace(/<\/pre>$/g, data.output + ''); + } + wide.curProcessId = data.pid; break; @@ -706,4 +712,4 @@ $(document).ready(function () { editors.init(); windows.init(); bottomGroup.init(); -}); \ No newline at end of file +});