diff --git a/Bench4Q-Web/src/main/webapp/script/test.js b/Bench4Q-Web/src/main/webapp/script/test.js index 00106ba7..2037bc8c 100644 --- a/Bench4Q-Web/src/main/webapp/script/test.js +++ b/Bench4Q-Web/src/main/webapp/script/test.js @@ -1,5 +1,6 @@ var script = new Array(); var filter = new Array(); +var filterArray = new Array(); $(document).ready(function() { $.post("loadScripts", {}, function(data) { if (!data.success) { @@ -33,42 +34,42 @@ function createFilter(){ 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 = $("
"); - line.click(function(){ - document.getElementById(id).checked = true; - }) - var input = $(""); - input.attr("value",value); - input.attr("text",text); - var span = $("
all input can not