aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/issue/views/changelog-view.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/components/issue/views/changelog-view.js')
-rw-r--r--server/sonar-web/src/main/js/components/issue/views/changelog-view.js31
1 files changed, 15 insertions, 16 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/views/changelog-view.js b/server/sonar-web/src/main/js/components/issue/views/changelog-view.js
index b834d90054c..f7c51f88a7f 100644
--- a/server/sonar-web/src/main/js/components/issue/views/changelog-view.js
+++ b/server/sonar-web/src/main/js/components/issue/views/changelog-view.js
@@ -1,20 +1,19 @@
-define([
- 'components/common/popup',
- '../templates'
-], function (PopupView) {
+import _ from 'underscore';
+import PopupView from 'components/common/popup';
+import '../templates';
- return PopupView.extend({
- template: Templates['issue-changelog'],
+export default PopupView.extend({
+ template: Templates['issue-changelog'],
- collectionEvents: {
- 'sync': 'render'
- },
-
- serializeData: function () {
- return _.extend(PopupView.prototype.serializeData.apply(this, arguments), {
- issue: this.options.issue.toJSON()
- });
- }
- });
+ collectionEvents: {
+ 'sync': 'render'
+ },
+ serializeData: function () {
+ return _.extend(PopupView.prototype.serializeData.apply(this, arguments), {
+ issue: this.options.issue.toJSON()
+ });
+ }
});
+
+