Commit 30687445 authored by Frank Bergmann's avatar Frank Bergmann

Cosmetic changes

parent 78863435
......@@ -1041,7 +1041,7 @@ Ext.define('GanttEditor.controller.GanttSchedulingController', {
for (var i = 0; i < nodes.length; i++) {
var task = nodes[i];
var taskId = task.get('id');
if (changedNodesHash[taskId]) { continue; }
if (changedNodesHash[taskId]) { continue; } // avoid pushing the same node twice!
changedNodes.push(task);
}
}
......
......@@ -120,6 +120,7 @@ Ext.define('GanttEditor.controller.GanttZoomController', {
var reportStartTime = new Date('2099-12-31').getTime();
var reportEndTime = new Date('2000-01-01').getTime();
// Accept that some tasks may have not been scheduled
var rootNode = ganttBarPanel.objectStore.getRootNode();
rootNode.cascadeBy(function(model) {
var start_date = model.get('start_date'); if (!start_date) return;
......
......@@ -428,7 +428,6 @@ Ext.define('GanttEditor.view.GanttBarPanel', {
// Calculate the per-user hash of assignments of a user to other tasks
me.setupOverassignments();
// Iterate through all children of the root node and check if they are visible
rootNode.cascadeBy(function(model) {
var viewNode = ganttTreeView.getNode(model);
......
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