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>
<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"

View File

@ -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");
// } }
} }