Merge remote-tracking branch 'opf/fix/timelines-api-migration' into fix/timelines-api-migration

Conflicts:
	doc/CHANGELOG.md
pull/553/head
Martin Czuchra 11 years ago
commit 24add6f460
  1. 15
      app/assets/javascripts/timelines.js

@ -1476,15 +1476,18 @@ Timeline = {
TimelineLoader.prototype.checkDependencies = function (identifier) {
if (this.shouldLoadReportings(identifier)) {
this.registerProjects(this.getRelevantProjectIdsBasedOnReportings());
}
else if (this.shouldLoadPlanningElements(identifier)) {
} else if (this.shouldLoadPlanningElements(identifier)) {
this.data = this.dataEnhancer.enhance(this.data);
this.registerPlanningElements(this.getRelevantProjectIdsBasedOnProjects());
} else if (this.shouldLoadRemainingPlanningElements(identifier)) {
this.registerPlanningElementsByID(this.getRemainingPlanningElements());
} else if (this.shouldLoadUsers(identifier)) {
this.registerUsers(this.getUsersToLoad());
} else {
if (this.shouldLoadRemainingPlanningElements(identifier)) {
this.registerPlanningElementsByID(this.getRemainingPlanningElements());
}
if (this.shouldLoadUsers(identifier)) {
this.registerUsers(this.getUsersToLoad());
}
}
this.loader.load();

Loading…
Cancel
Save