modify the method of loadMethod in plugin-new.js

This commit is contained in:
zhengyingying 2014-03-18 19:45:11 +08:00
parent 4646d43e3b
commit d94ef8fe48
2 changed files with 15 additions and 9 deletions

View File

@ -1,8 +1,12 @@
//创建一个PluginMethodListModel
function PluginMethodListModel(pluginName,methodList){
this.pluginName=pluginName;
this.methodList=methodList;
}
$(document).ready(function() {
loadPluginList();
});
// plug-in-list全部数组
var pluginList = new Array();
var pluginMethodList=new Array();
@ -54,7 +58,12 @@ function pluginFinish() {
data = item + "_" + num;
pluginChoosedList.push(data);
num++;
/*
//load选择的plugin的MethodList
var aMethodList=getMethod(item);
document.write(data);
pluginMethodList.push(new PluginMethodListModel(data,aMethodList));
*/
var div = document.createElement("div");
var p = document.createElement("p");
var textNode = document.createTextNode(data);
@ -152,6 +161,7 @@ function showMethodDocument(selectedNode) {
var flag = false;
var length = document.getElementById("showPluginMethod").childNodes.length;
document.write(length);
if (length == 0) {
flag = false;
} else {
@ -404,7 +414,7 @@ function createTable(methodParamModel) {
function addCol(selectedNode) {
var table = selectedNode.nextSibling.nextSibling.nextSibling;
var length = $(table).find("th").find("tr").length;
var length = $(table).find("th").find("td").length;
var tr = document.createElement("tr");
for (var i = 0; i < length; i++) {
var td = document.createElement("td");
@ -412,6 +422,7 @@ function addCol(selectedNode) {
td.appendChild(text);
tr.appendChild(td);
}
table.appendChild(tr);
}
function removeCol(selectedNode) {

View File

@ -38,8 +38,3 @@ function CheckBox(rows, type, valueSeperator, fieldSeperator) {
this.valueSeperator = valueSeperator;
this.fieldSeparator = fieldSeperator;
}
//创建一个PluginMethodListModel
function PluginMethodListModel(pluginName,methodList){
this.pluginName=pluginName;
this.methodList=methodList;
}