Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-gantt-editor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-gantt-editor
Commits
cf993b09
Commit
cf993b09
authored
Aug 24, 2021
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- WIP on baselines
parent
39cd117b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
17 deletions
+20
-17
gantt-editor.adp
lib/gantt-editor.adp
+20
-17
GanttZoomController.js
www/controller/GanttZoomController.js
+0
-0
No files found.
lib/gantt-editor.adp
View file @
cf993b09
...
...
@@ -124,37 +124,40 @@ function launchGanttEditor(debug){
});
/* ***********************************************************************
* Config Menu
* Config Menu
!!!
*********************************************************************** */
var baselineComboBox = null;
if (baseline_p > 0) {
baselineComboBox = new Ext.form.ComboBox({
fieldLabel: 'Baseline',
labelWidth: 50,
baselineComboBox = new Ext.form.ComboBox({
fieldLabel: 'Baseline',
labelWidth: 50,
emptyText: 'Select a baseline',
store: baselineStore,
displayField: 'baseline_name',
idField: 'baseline_id',
mode: 'local',
triggerAction: 'all',
emptyText: 'Select a baseline',
idField: 'baseline_id',
queryMode: 'local',
// triggerAction: 'all',
selectOnFocus: true,
// getListParent: function() { return this.el.up('.x-menu'); },
id: 'config_menu_show_project_baseline',
key: 'show_project_baseline',
iconCls: 'no-icon'
});
var baselineId = senchaPreferenceStore.getPreference(baselineComboBox.key, "");
var baselineModel = baselineComboBox.findRecord('baseline_id', baselineId);
baselineComboBox.setValue(baselineModel.get('baseline_name'));
baselineComboBox.on('select', function(combo, records) {
});
var baselineId = senchaPreferenceStore.getPreference(baselineComboBox.key, "");
var baselineModel = baselineComboBox.findRecord('baseline_id', baselineId);
if (baselineModel) {
baselineComboBox.setValue(baselineModel.get('baseline_name'));
}
baselineComboBox.on('change', function(combo, value) {
var records = baselineComboBox.findRecord('baseline_name', value);
if (!records) return;
var record = records[0];
if (!record) return;
var id = record.get('id');
senchaPreferenceStore.setPreference(baselineComboBox.key, id);
ganttBarPanel.needsRedraw = true;
});
ganttBarPanel.needsRedraw = true;
});
}
var configMenuGanttEditor = Ext.create('PO.view.menu.ConfigMenu', {
...
...
@@ -188,8 +191,8 @@ function launchGanttEditor(debug){
text: 'Show "Logged Hours %" on Gantt Bars',
checked: true
},
baselineComboBox,
{
baselineComboBox,
{
id: 'config_menu_show_project_findocs',
key: 'show_project_findocs',
text: 'Show Project Financial Documents',
...
...
www/controller/GanttZoomController.js
100755 → 100644
View file @
cf993b09
File mode changed from 100755 to 100644
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment