Bind directives directly to the module

pull/1610/head
Hagen Schink 10 years ago
parent e6de20a9d9
commit ffcbf5d804
  1. 12
      app/assets/javascripts/angular/directives/components/date-directive.js

@ -27,9 +27,9 @@
//++ //++
// TODO move to UI components // TODO move to UI components
var uiComponents = angular.module('openproject.uiComponents') angular.module('openproject.uiComponents')
uiComponents.directive('date', ['I18n', 'TimezoneService', 'ConfigurationService', function(I18n, TimezoneService, ConfigurationService) { .directive('date', ['I18n', 'TimezoneService', 'ConfigurationService', function(I18n, TimezoneService, ConfigurationService) {
return { return {
restrict: 'EA', restrict: 'EA',
replace: false, replace: false,
@ -45,9 +45,9 @@ uiComponents.directive('date', ['I18n', 'TimezoneService', 'ConfigurationService
} }
} }
}; };
}]); }])
uiComponents.directive('time', ['I18n', 'TimezoneService', 'ConfigurationService', function(I18n, TimezoneService, ConfigurationService) { .directive('time', ['I18n', 'TimezoneService', 'ConfigurationService', function(I18n, TimezoneService, ConfigurationService) {
return { return {
restrict: 'EA', restrict: 'EA',
replace: false, replace: false,
@ -63,9 +63,9 @@ uiComponents.directive('time', ['I18n', 'TimezoneService', 'ConfigurationService
} }
} }
}; };
}]); }])
uiComponents.directive('dateTime', function($compile) { .directive('dateTime', function($compile) {
return { return {
restrict: 'EA', restrict: 'EA',
replace: false, replace: false,

Loading…
Cancel
Save