Commit 074ca5a1 authored by Project Open's avatar Project Open

- Just reformatting source code

parent 30c28187
......@@ -348,26 +348,33 @@ Ext.define('PO.view.gantt.GanttTreePanel', {
{text: 'Prio', stateId: 'treegrid-prio', flex: 0, width: 40, dataIndex: 'priority', hidden: true,
editor: { xtype: 'numberfield', minValue: 0, maxValue: 1000 }
},
{text: 'Status', stateId: 'treegrid-status', flex: 1, hidden: true, dataIndex: 'project_status_id', sortable: false,
editor: {
xtype: 'combobox',
forceSelection: true,
allowBlank: false,
editable: false,
store: Ext.create('Ext.data.Store', {
fields: ['id', 'category'],
data: [{id: "76", category: "Open"},{id: "81", category: "Closed"}]
}),
displayField: 'category',
valueField: 'id'
},
renderer: function(value) {
if ("" == value) return "";
var statusStore = Ext.StoreManager.get('taskStatusStore');
var model = statusStore.getById(value);
if (!model) return "Status #"+value;
return model.get('category');
}},
{
text: 'Status',
stateId: 'treegrid-status',
flex: 1,
hidden: true,
dataIndex: 'project_status_id',
sortable: false,
editor: {
xtype: 'combobox',
forceSelection: true,
allowBlank: false,
editable: false,
store: Ext.create('Ext.data.Store', {
fields: ['id', 'category'],
data: [{id: "76", category: "Open"},{id: "81", category: "Closed"}]
}),
displayField: 'category',
valueField: 'id'
},
renderer: function(value) {
if ("" == value) return "";
var statusStore = Ext.StoreManager.get('taskStatusStore');
var model = statusStore.getById(value);
if (!model) return "Status #"+value;
return model.get('category');
}
},
{text: 'Project Nr', stateId: 'treegrid-nr', flex: 1, dataIndex: 'project_nr', hidden: true, sortable: false, editor: true},
{text: 'WBS', stateId: 'treegrid-wbs', flex: 1, dataIndex: 'project_wbs', hidden: true, sortable: false, editor: true},
{header: 'Effort Driven?', stateId: 'treegrid-effort-driven-p', flex: 0, width: 40,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment