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) { TimelineLoader.prototype.checkDependencies = function (identifier) {
if (this.shouldLoadReportings(identifier)) { if (this.shouldLoadReportings(identifier)) {
this.registerProjects(this.getRelevantProjectIdsBasedOnReportings()); this.registerProjects(this.getRelevantProjectIdsBasedOnReportings());
} } else if (this.shouldLoadPlanningElements(identifier)) {
else if (this.shouldLoadPlanningElements(identifier)) {
this.data = this.dataEnhancer.enhance(this.data); this.data = this.dataEnhancer.enhance(this.data);
this.registerPlanningElements(this.getRelevantProjectIdsBasedOnProjects()); this.registerPlanningElements(this.getRelevantProjectIdsBasedOnProjects());
} else if (this.shouldLoadRemainingPlanningElements(identifier)) { } else {
this.registerPlanningElementsByID(this.getRemainingPlanningElements()); if (this.shouldLoadRemainingPlanningElements(identifier)) {
} else if (this.shouldLoadUsers(identifier)) { this.registerPlanningElementsByID(this.getRemainingPlanningElements());
this.registerUsers(this.getUsersToLoad()); }
if (this.shouldLoadUsers(identifier)) {
this.registerUsers(this.getUsersToLoad());
}
} }
this.loader.load(); this.loader.load();

Loading…
Cancel
Save