edit dialog of recordScript
This commit is contained in:
parent
c2bcf8672a
commit
c0f3ac1daa
|
@ -207,7 +207,7 @@ body {
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="button" class="btn btn-primary"
|
<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" />
|
<fmt:message key="startRecording" />
|
||||||
</button>
|
</button>
|
||||||
<button type="button" class="btn btn-primary"
|
<button type="button" class="btn btn-primary"
|
||||||
|
|
|
@ -132,7 +132,7 @@ function testRecordProxy() {
|
||||||
if (data.success) {
|
if (data.success) {
|
||||||
$('#mySecondModal').modal('hide');
|
$('#mySecondModal').modal('hide');
|
||||||
$('#myThirdModal').modal('show');
|
$('#myThirdModal').modal('show');
|
||||||
server = data.server;
|
//server = data.server;
|
||||||
$('#scriptInfo3').text(
|
$('#scriptInfo3').text(
|
||||||
$.i18n.prop("RecordingScript"));
|
$.i18n.prop("RecordingScript"));
|
||||||
//$('#startServer').attr('disabled', true);
|
//$('#startServer').attr('disabled', true);
|
||||||
|
@ -145,7 +145,7 @@ function testRecordProxy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function startRecording() {
|
function startRecording() {
|
||||||
//if (server != null) {
|
if (server != null) {
|
||||||
$.post("startRecording", {
|
$.post("startRecording", {
|
||||||
port : server.port,
|
port : server.port,
|
||||||
scriptRecordUUID : server.fileName
|
scriptRecordUUID : server.fileName
|
||||||
|
@ -157,10 +157,10 @@ function startRecording() {
|
||||||
$('#startRecording').attr('disabled', true);
|
$('#startRecording').attr('disabled', true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
window.location.href='http://www.baidu.com/';
|
window.open('http://www.baidu.com/')
|
||||||
}
|
}
|
||||||
}, "json");
|
}, "json");
|
||||||
// } else {
|
} else {
|
||||||
// $('#scriptInfo3').text("record script server has not started");
|
$('#scriptInfo3').text("record script server has not started");
|
||||||
// }
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue