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
13f2c519
Commit
13f2c519
authored
Aug 25, 2021
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed issue with baselines leading to wrong bar getting the dndConfig
parent
6d5821a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
gantt-editor.adp
lib/gantt-editor.adp
+10
-1
GanttBarPanel.adp
www/view/GanttBarPanel.adp
+1
-1
No files found.
lib/gantt-editor.adp
View file @
13f2c519
...
...
@@ -133,6 +133,7 @@ function launchGanttEditor(debug){
fieldLabel: 'Baseline',
labelWidth: 50,
emptyText: 'Select a baseline',
allowBlank: true,
store: baselineStore,
displayField: 'baseline_name',
idField: 'baseline_id',
...
...
@@ -507,7 +508,15 @@ Ext.onReady(function() {
format: 'json',
query: "baseline_project_id = @project_id@"
};
baselineStore.load({callback: function(r, op, success) { if (!success) PO.Utilities.reportStoreError("BaselineStore", op); }});
// add a blank option to store every time it is loaded
baselineStore.on('load', function(r, op, success) {
baselineStore.insert(0, [{'baseline_id': '0', 'baseline_name': 'none'}]);
});
baselineStore.load({callback: function(r, op, success) {
if (!success) PO.Utilities.reportStoreError("BaselineStore", op);
}});
}
// Load stores that need parameters
...
...
www/view/GanttBarPanel.adp
View file @
13f2c519
...
...
@@ -769,7 +769,7 @@ Ext.define('GanttEditor.view.GanttBarPanel', {
var endX = me.date2x(baselineEndDate); // X position based on time scale
// A baseline shadow
var
s
priteBar = surface.add({
var
baselineS
priteBar = surface.add({
type: 'rect', x: startX, y: y, width: endX - startX, height: h, radius: 3,
stroke: 'red',
'stroke-width': 0.3,
...
...
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