solve request header——accept q=*

This commit is contained in:
hmm 2014-09-04 10:40:09 +08:00
parent 9dfe8caab6
commit ecf91213c2
3 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@
</plugin> </plugin>
<timer name="Sleep"> <timer name="Sleep">
<params> <params>
<param name="time" required="true"> <param name="time" label="The time to sleep" required="true">
<field size="6" /> <field size="6" />
</param> </param>
</params> </params>

View File

@ -2,7 +2,6 @@ var server = null;
var table = $("#scriptTab").DataTable(); var table = $("#scriptTab").DataTable();
var startRecordingSuccess = false; var startRecordingSuccess = false;
var startServerSuccess = false; var startServerSuccess = false;
var stopServerSuccess = false;
function startServer() { function startServer() {
$.post("startRecordServer", {}, function(data) { $.post("startRecordServer", {}, function(data) {

View File

@ -232,7 +232,10 @@ function(label, name, required, cols, id, value) {
$(input).attr("required", "required"); $(input).attr("required", "required");
} }
if(values[i] != undefined){ if(values[i] != undefined){
$(input).val(values[i].split("=")[1]); var pos = values[i].indexOf("=");
if(pos!=-1){
$(input).val(values[i].substring(pos+1));
}
} }
var td = document.createElement("td"); var td = document.createElement("td");
$(td).attr("style", "width:" + 100 / headers.length + "%") $(td).attr("style", "width:" + 100 / headers.length + "%")