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-05-28 17:03:02 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-05-29 14:28:48 +0200
commit9f163b2b3a99db950c8a32b71e9f1a08d6d9cb13 (patch)
tree68f86458fc26dc02bebfa66d6b28e337c1b3c9a9 /server/sonar-web/src/main/js/components/issue/views/issue-popup.js
parent4b19090646f054240d23ff8c2ac27daecf95755b (diff)
downloadsonarqube-9f163b2b3a99db950c8a32b71e9f1a08d6d9cb13.tar.gz
sonarqube-9f163b2b3a99db950c8a32b71e9f1a08d6d9cb13.zip
move issue component from coffee to js
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.js33
1 files changed, 33 insertions, 0 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
new file mode 100644
index 00000000000..575fb50a52a
--- /dev/null
+++ b/server/sonar-web/src/main/js/components/issue/views/issue-popup.js
@@ -0,0 +1,33 @@
+define([
+ 'components/common/popup'
+], function (PopupView) {
+
+ return PopupView.extend({
+ className: 'bubble-popup issue-bubble-popup',
+
+ template: function () {
+ return '<div class="bubble-popup-arrow"></div>';
+ },
+
+ events: function () {
+ return {
+ 'click .js-issue-form-cancel': 'close'
+ };
+ },
+
+ onRender: function () {
+ PopupView.prototype.onRender.apply(this, arguments);
+ this.options.view.$el.appendTo(this.$el);
+ this.options.view.render();
+ },
+
+ onClose: function () {
+ this.options.view.close();
+ },
+
+ attachCloseEvents: function () {
+
+ }
+ });
+
+});