edit dialog of recordScript
This commit is contained in:
parent
c2bcf8672a
commit
c0f3ac1daa
|
@ -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"
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue