edit dialog of recordScript

This commit is contained in:
luqiong 2014-09-01 10:23:27 +08:00
parent c2bcf8672a
commit c0f3ac1daa
2 changed files with 7 additions and 7 deletions

View File

@ -207,7 +207,7 @@ body {
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary"
onClick="javascript:window.location.href='http://www.baidu.com/'" id="startRecording">
onClick="startRecording()" id="startRecording">
<fmt:message key="startRecording" />
</button>
<button type="button" class="btn btn-primary"

View File

@ -132,7 +132,7 @@ function testRecordProxy() {
if (data.success) {
$('#mySecondModal').modal('hide');
$('#myThirdModal').modal('show');
server = data.server;
//server = data.server;
$('#scriptInfo3').text(
$.i18n.prop("RecordingScript"));
//$('#startServer').attr('disabled', true);
@ -145,7 +145,7 @@ function testRecordProxy() {
}
function startRecording() {
//if (server != null) {
if (server != null) {
$.post("startRecording", {
port : server.port,
scriptRecordUUID : server.fileName
@ -157,10 +157,10 @@ function startRecording() {
$('#startRecording').attr('disabled', true);
}
else {
window.location.href='http://www.baidu.com/';
window.open('http://www.baidu.com/')
}
}, "json");
// } else {
// $('#scriptInfo3').text("record script server has not started");
// }
} else {
$('#scriptInfo3').text("record script server has not started");
}
}