aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/issue/views/issue-popup.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-09-29 15:22:40 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-09-29 15:22:40 +0200
commitb8a80269e55fee3e0590c925a5c37f8d18c5c932 (patch)
treedd1efe864cd73986f4894797f28f5fd3c1f7319b /server/sonar-web/src/main/js/components/issue/views/issue-popup.js
parentbe7978644b590068fe21fe047ccb75b3c0b8f326 (diff)
downloadsonarqube-b8a80269e55fee3e0590c925a5c37f8d18c5c932.tar.gz
sonarqube-b8a80269e55fee3e0590c925a5c37f8d18c5c932.zip
migrate js components to es2015 modules
Diffstat (limited to 'server/sonar-web/src/main/js/components/issue/views/issue-popup.js')
-rw-r--r--server/sonar-web/src/main/js/components/issue/views/issue-popup.js48
1 files changed, 23 insertions, 25 deletions
diff --git a/server/sonar-web/src/main/js/components/issue/views/issue-popup.js b/server/sonar-web/src/main/js/components/issue/views/issue-popup.js
index 9c36ad104b5..e8160c8ef66 100644
--- a/server/sonar-web/src/main/js/components/issue/views/issue-popup.js
+++ b/server/sonar-web/src/main/js/components/issue/views/issue-popup.js
@@ -1,33 +1,31 @@
-define([
- 'components/common/popup'
-], function (PopupView) {
+import PopupView from 'components/common/popup';
- return PopupView.extend({
- className: 'bubble-popup issue-bubble-popup',
+export default PopupView.extend({
+ className: 'bubble-popup issue-bubble-popup',
- template: function () {
- return '<div class="bubble-popup-arrow"></div>';
- },
+ template: function () {
+ return '<div class="bubble-popup-arrow"></div>';
+ },
- events: function () {
- return {
- 'click .js-issue-form-cancel': 'destroy'
- };
- },
+ events: function () {
+ return {
+ 'click .js-issue-form-cancel': 'destroy'
+ };
+ },
- onRender: function () {
- PopupView.prototype.onRender.apply(this, arguments);
- this.options.view.$el.appendTo(this.$el);
- this.options.view.render();
- },
+ onRender: function () {
+ PopupView.prototype.onRender.apply(this, arguments);
+ this.options.view.$el.appendTo(this.$el);
+ this.options.view.render();
+ },
- onDestroy: function () {
- this.options.view.destroy();
- },
+ onDestroy: function () {
+ this.options.view.destroy();
+ },
- attachCloseEvents: function () {
-
- }
- });
+ attachCloseEvents: function () {
+ }
});
+
+