From 8f546999fbd820a2b7d8231593801162b88db560 Mon Sep 17 00:00:00 2001 From: hmm Date: Thu, 4 Sep 2014 08:39:01 +0800 Subject: [PATCH] stopserver after success to stoprecording --- .../src/main/webapp/script/RecordScript/RecordScriptServer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Bench4Q-Web/src/main/webapp/script/RecordScript/RecordScriptServer.js b/Bench4Q-Web/src/main/webapp/script/RecordScript/RecordScriptServer.js index 39043ed9..ff2468a7 100644 --- a/Bench4Q-Web/src/main/webapp/script/RecordScript/RecordScriptServer.js +++ b/Bench4Q-Web/src/main/webapp/script/RecordScript/RecordScriptServer.js @@ -57,18 +57,19 @@ function stopRecording() { "stop record server error:" + data.failedMessage); $('#stopServer').attr('disabled', true); $('#startServer').attr('disabled', false); + } else { $('#stopServer').attr('disabled', true); $('#scriptInfo3').text( $.i18n.prop("stoprecord") ); + stopServer(); } }, "json"); } else { $('#scriptInfo3').text("record script server has not started"); } - stopServer(); } function stopServer() {