parent
bbea098553
commit
5564c9d78b
|
@ -155,13 +155,6 @@ body {
|
|||
<fmt:message key="uploadScript" />
|
||||
</button>
|
||||
</div>
|
||||
<div id="fileName" style="display: none" class="modal-footer">
|
||||
<input class="input-mini" name="scriptname"></input>
|
||||
<button type="button" class="btn btn-primary"
|
||||
onClick="saveScript()">
|
||||
<fmt:message key="savefile" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal hide fade" id="mySecondModal">
|
||||
|
@ -185,13 +178,6 @@ body {
|
|||
<fmt:message key="plugin_jsp_cancel" />
|
||||
</button>
|
||||
</div>
|
||||
<div id="fileName" style="display: none" class="modal-footer">
|
||||
<input class="input-mini" name="scriptname"></input>
|
||||
<button type="button" class="btn btn-primary"
|
||||
onClick="saveScript()">
|
||||
<fmt:message key="savefile" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal hide fade" id="myThirdModal">
|
||||
|
|
|
@ -70,6 +70,7 @@ function stopServer() {
|
|||
}
|
||||
|
||||
else {
|
||||
$('#stopServer').attr('disabled', false);
|
||||
$('#fileName').show();
|
||||
$('#scriptInfo3').text(
|
||||
$.i18n.prop("stopRecord")
|
||||
|
@ -136,7 +137,7 @@ function testRecordProxy() {
|
|||
$('#scriptInfo3').text(
|
||||
$.i18n.prop("RecordingScript"));
|
||||
//$('#startServer').attr('disabled', true);
|
||||
$('#stopServer').attr('disabled', true);
|
||||
//$('#stopServer').attr('disabled', true);
|
||||
} else {
|
||||
$('#scriptInfo2').html(
|
||||
$.i18n.prop("ProxySettingError") + data.failedMessage);
|
||||
|
@ -157,7 +158,11 @@ function startRecording() {
|
|||
$('#startRecording').attr('disabled', true);
|
||||
}
|
||||
else {
|
||||
window.open('http://www.baidu.com/')
|
||||
$('#scriptInfo3').text($.i18n.prop("stopRecord"));
|
||||
var url = $('#target-url').val();
|
||||
window.open(url);
|
||||
$('#stopServer').attr('disabled', false);
|
||||
$('#startRecording').attr('disabled', true);
|
||||
}
|
||||
}, "json");
|
||||
} else {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
var script = new Array();
|
||||
var filter = new Array();
|
||||
$(document).ready(function() {
|
||||
$.post("loadScripts", {}, function(data) {
|
||||
if (!data.success) {
|
||||
|
@ -23,6 +24,53 @@ $(document).ready(function() {
|
|||
$(document).ready(function() {
|
||||
loadSchedulePlot();
|
||||
});
|
||||
|
||||
|
||||
function createFilter(){
|
||||
$.post("loadFilterTypeList", {}, function(data) {
|
||||
if(!data.success){
|
||||
information(data.failedMessage);
|
||||
return;
|
||||
}else{
|
||||
$('#selectFilter').show();
|
||||
data = data.filterTypeList;
|
||||
for ( var i = 0; i < data.length; i++)
|
||||
filter.push(data[i]);
|
||||
for( var j = 0; j < filter.length; j++){
|
||||
var textNode = document.createTextNode(filter[j]);
|
||||
var checkboxNode = document.createElement("input");
|
||||
checkboxNode.setAttribute("type", "checkbox");
|
||||
checkboxNode.setAttribute("name", "filterList");
|
||||
checkboxNode.setAttribute("id", "filterList"+j);
|
||||
checkboxNode.appendChild(textNode);
|
||||
|
||||
/* var line = $("<div style='cursor:pointer;'>");
|
||||
line.click(function(){
|
||||
document.getElementById(id).checked = true;
|
||||
})
|
||||
var input = $("<input type='radio' name="+name+" id="+id+">");
|
||||
input.attr("value",value);
|
||||
input.attr("text",text);
|
||||
var span = $("<label for="+id+" style='cursor:pointer;'>");
|
||||
span.html(text);
|
||||
line.append(input);
|
||||
line.append(span);
|
||||
line.addClass("line");
|
||||
*/
|
||||
$('#filterList').append(checkboxNode);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$("#selectFilter #ok").click(function() {
|
||||
$("#selectFilter").hide();
|
||||
});
|
||||
|
||||
$("#selectFilter #cancel").click(function() {
|
||||
$("#selectFilter").hide();
|
||||
});
|
||||
|
||||
function toggleTestExecutionPlan() {
|
||||
$("#loadTestExecutionPlan").slideToggle();
|
||||
$('#loadConfigMessage').attr("class", "hide");
|
||||
|
|
|
@ -151,14 +151,14 @@ body {
|
|||
|
||||
</select></td>
|
||||
|
||||
<td><input type="checkbox" name="staticResources"
|
||||
<!-- <td><input type="checkbox" name="staticResources"
|
||||
value="false" data-toggle="tooltip" data-placement="left"
|
||||
title=<fmt:message key="staticTip" />> <fmt:message
|
||||
key="filterStatic" /></td>
|
||||
<td><input type="checkbox" name="timer" value="false"
|
||||
data-toggle="tooltip" data-placement="left"
|
||||
title=<fmt:message key="timeTip" />> <fmt:message
|
||||
key="filterTime" /><br></td>
|
||||
key="filterTime" /><br></td> -->
|
||||
<td><a href="#" class="button" onClick="viewScript(this)"><img
|
||||
src="images/script_edit.png" alt="Add"> <fmt:message
|
||||
key="test-editScript" /></a></td>
|
||||
|
@ -183,7 +183,27 @@ body {
|
|||
onClick="createNewScript()">
|
||||
<fmt:message key="test_jsp_makeNewScript" />
|
||||
</button>
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-primary" id="createFilter"
|
||||
onClick="createFilter()">
|
||||
<fmt:message key="plugin_jsp_filter" />
|
||||
</button>
|
||||
<div class="modal hide" id="selectFilter">
|
||||
<!-- <div class="modal-header">
|
||||
<h3><fmt:message key="plugin_jsp_addNewPlugin" /></h3>
|
||||
</div> -->
|
||||
<div class="modal-body">
|
||||
<div class="inset scroll" id="filterList"></div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-primary btn-width" id="ok">
|
||||
<fmt:message key="plugin_jsp_finish" />
|
||||
</button>
|
||||
<button type="button" class="btn btn-primary btn-width" id="cancel">
|
||||
<fmt:message key="plugin_jsp_cancel" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="userConfigMessage" class="hide">all input can not
|
||||
be empty and must be greater than zero!</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue