diff --git a/frontend/app/global.js b/frontend/app/global.js index 9fbc94e81f..92b3e29517 100644 --- a/frontend/app/global.js +++ b/frontend/app/global.js @@ -61,3 +61,9 @@ require('Caret.js/src/jquery.caret.js'); require('select2/select2.js'); require('select2/select2.css'); + +require('angular'); +require('angular-sanitize'); + +require('ui-select/dist/select'); +require('ui-select/dist/select.css'); diff --git a/frontend/app/openproject-app.js b/frontend/app/openproject-app.js index 401b881d53..0790820640 100644 --- a/frontend/app/openproject-app.js +++ b/frontend/app/openproject-app.js @@ -36,8 +36,6 @@ I18n.addTranslations = function(locale, translations) { I18n.translations[locale] = _.merge(I18n.translations[locale], translations); }; - -var angular = require('angular'); require('angular-animate'); require('angular-aria'); require('angular-modal'); @@ -52,16 +50,12 @@ require('angular-ui-select2'); require('angular-ui-select2-sortable'); require('angular-ui-date'); -require('angular-sanitize'); require('angular-truncate'); require('angular-feature-flags'); require('angular-busy/dist/angular-busy'); require('angular-busy/dist/angular-busy.css'); -require('ui-select/dist/select'); -require('ui-select/dist/select.css'); - require('angular-context-menu'); require('mousetrap');