Extended Property for Tasks

This commit is contained in:
Hugo Loza
2011-01-18 22:14:46 +00:00
parent 8b3663df5f
commit 324bb69a6a
4 changed files with 112 additions and 5 deletions

View File

@@ -1533,6 +1533,7 @@ var processmap=function(){
this.tmp.propertiesPanel = panel =new leimnud.module.panel();
var data = this.data.db.task[index];
panel.options={
limit:true,
size:{w:600,h:430},
@@ -1552,6 +1553,7 @@ var processmap=function(){
modal:true
}
};
panel.tab={
width :170,
optWidth:160,
@@ -1584,7 +1586,20 @@ var processmap=function(){
noClear : true
}]
};
var taskOptions = this.data.db.taskOptions;
this.loadExtendedProperties = function(){
for(i=0;i<taskOptions.length;i++){
anElement={
title : taskOptions[i].title,
content : this.parent.closure({instance:this,method:iForm,args:[panel,index,taskOptions[i].id]}),
noClear : true
};
panel.tab.options.push(anElement);
}
};
this.loadExtendedProperties();
panel.make();
},args:index})}
]:
[