aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/coffee
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/coffee')
-rw-r--r--server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-parameter-popup-view.coffee4
-rw-r--r--server/sonar-web/src/main/coffee/common/popup.coffee (renamed from server/sonar-web/src/main/coffee/component-viewer/popup.coffee)14
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/coverage-popup.coffee2
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/covered-files-popup.coffee2
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/duplication-popup.coffee2
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/line-actions-popup.coffee2
-rw-r--r--server/sonar-web/src/main/coffee/component-viewer/time-changes-popup.coffee2
7 files changed, 13 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-parameter-popup-view.coffee b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-parameter-popup-view.coffee
index 4277d205433..52ece5db2a9 100644
--- a/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-parameter-popup-view.coffee
+++ b/server/sonar-web/src/main/coffee/coding-rules/views/coding-rules-parameter-popup-view.coffee
@@ -1,13 +1,11 @@
define [
'backbone.marionette'
'templates/coding-rules'
- 'component-viewer/popup'
-# 'component-viewer/utils'
+ 'common/popup'
], (
Marionette
Templates
Popup
-# utils
) ->
$ = jQuery
diff --git a/server/sonar-web/src/main/coffee/component-viewer/popup.coffee b/server/sonar-web/src/main/coffee/common/popup.coffee
index 939180e37be..abf4e9e8c56 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/popup.coffee
+++ b/server/sonar-web/src/main/coffee/common/popup.coffee
@@ -7,20 +7,20 @@ define [
$ = jQuery
- class CoveragePopupView extends Marionette.ItemView
- className: 'component-viewer-popup'
+ class PopupView extends Marionette.ItemView
+ className: 'bubble-popup'
onRender: ->
@$el.detach().appendTo $('body')
if @options.bottom
- @$el.addClass 'component-viewer-popup-bottom'
+ @$el.addClass 'bubble-popup-bottom'
@$el.css
top: @options.triggerEl.offset().top + @options.triggerEl.outerHeight()
left: @options.triggerEl.offset().left
else if @options.bottomRight
- @$el.addClass 'component-viewer-popup-bottom-right'
+ @$el.addClass 'bubble-popup-bottom-right'
@$el.css
top: @options.triggerEl.offset().top + @options.triggerEl.outerHeight()
right: $(window).width() - @options.triggerEl.offset().left - @options.triggerEl.outerWidth()
@@ -30,6 +30,6 @@ define [
left: @options.triggerEl.offset().left + @options.triggerEl.outerWidth()
- $('body').on 'click.coverage-popup', =>
- $('body').off 'click.coverage-popup'
- @close() \ No newline at end of file
+ $('body').on 'click.bubble-popup', =>
+ $('body').off 'click.bubble-popup'
+ @close()
diff --git a/server/sonar-web/src/main/coffee/component-viewer/coverage-popup.coffee b/server/sonar-web/src/main/coffee/component-viewer/coverage-popup.coffee
index bc9bf899ed6..9311fef5b1c 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/coverage-popup.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/coverage-popup.coffee
@@ -1,7 +1,7 @@
define [
'backbone.marionette'
'templates/component-viewer'
- 'component-viewer/popup'
+ 'common/popup'
'component-viewer/utils'
], (
Marionette
diff --git a/server/sonar-web/src/main/coffee/component-viewer/covered-files-popup.coffee b/server/sonar-web/src/main/coffee/component-viewer/covered-files-popup.coffee
index ccf628a6434..2d6a37a135b 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/covered-files-popup.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/covered-files-popup.coffee
@@ -1,7 +1,7 @@
define [
'backbone.marionette'
'templates/component-viewer'
- 'component-viewer/popup'
+ 'common/popup'
'component-viewer/utils'
], (
Marionette
diff --git a/server/sonar-web/src/main/coffee/component-viewer/duplication-popup.coffee b/server/sonar-web/src/main/coffee/component-viewer/duplication-popup.coffee
index 1f975a2619e..108da019e95 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/duplication-popup.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/duplication-popup.coffee
@@ -1,7 +1,7 @@
define [
'backbone.marionette'
'templates/component-viewer'
- 'component-viewer/popup'
+ 'common/popup'
'component-viewer/utils'
], (
Marionette
diff --git a/server/sonar-web/src/main/coffee/component-viewer/line-actions-popup.coffee b/server/sonar-web/src/main/coffee/component-viewer/line-actions-popup.coffee
index 303fe28b1e5..f0de0ac50c5 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/line-actions-popup.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/line-actions-popup.coffee
@@ -1,7 +1,7 @@
define [
'backbone.marionette'
'templates/component-viewer'
- 'component-viewer/popup'
+ 'common/popup'
'issues/manual-issue-view'
], (
Marionette
diff --git a/server/sonar-web/src/main/coffee/component-viewer/time-changes-popup.coffee b/server/sonar-web/src/main/coffee/component-viewer/time-changes-popup.coffee
index 2e1cad33c72..0854f1b91e6 100644
--- a/server/sonar-web/src/main/coffee/component-viewer/time-changes-popup.coffee
+++ b/server/sonar-web/src/main/coffee/component-viewer/time-changes-popup.coffee
@@ -1,7 +1,7 @@
define [
'backbone.marionette'
'templates/component-viewer'
- 'component-viewer/popup'
+ 'common/popup'
], (
Marionette
Templates