|
|
@ -65,6 +65,7 @@ angular.module('openproject.timelines.directives') |
|
|
|
if(scope.updateToolbar) scope.updateToolbar(); |
|
|
|
if(scope.updateToolbar) scope.updateToolbar(); |
|
|
|
|
|
|
|
|
|
|
|
scope.underConstruction = false; |
|
|
|
scope.underConstruction = false; |
|
|
|
|
|
|
|
scope.warning = false; |
|
|
|
|
|
|
|
|
|
|
|
scope.timeline.getChart().scroll(function() { |
|
|
|
scope.timeline.getChart().scroll(function() { |
|
|
|
scope.timeline.adjustTooltip(); |
|
|
|
scope.timeline.adjustTooltip(); |
|
|
@ -75,6 +76,12 @@ angular.module('openproject.timelines.directives') |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
showWarning = function(){ |
|
|
|
|
|
|
|
scope.underConstruction = false; |
|
|
|
|
|
|
|
scope.warning = true; |
|
|
|
|
|
|
|
scope.$apply(); |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
buildWorkPackageTable = function(timeline){ |
|
|
|
buildWorkPackageTable = function(timeline){ |
|
|
|
if (timeline.isGrouping() && timeline.options.grouping_two_enabled) { |
|
|
|
if (timeline.isGrouping() && timeline.options.grouping_two_enabled) { |
|
|
|
timeline.secondLevelGroupingAdjustments(); |
|
|
|
timeline.secondLevelGroupingAdjustments(); |
|
|
@ -98,10 +105,10 @@ angular.module('openproject.timelines.directives') |
|
|
|
try { |
|
|
|
try { |
|
|
|
window.clearTimeout(timeline.safetyHook); |
|
|
|
window.clearTimeout(timeline.safetyHook); |
|
|
|
|
|
|
|
|
|
|
|
if (rows.length > 0) { |
|
|
|
if (scope.rows.length > 0) { |
|
|
|
completeUI(); |
|
|
|
completeUI(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
timeline.warn(I18n.t('js.label_no_data'), 'warning'); |
|
|
|
timeline.warn(I18n.t('js.label_no_data'), 'warning', this.showWarning); |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
timeline.die(e); |
|
|
|
timeline.die(e); |
|
|
|