Extended Property for Tasks
This commit is contained in:
@@ -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})}
|
||||
]:
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user