aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/layout.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-09-17 16:15:28 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-09-18 10:47:27 +0200
commit890ab0b59cdb3902f4869eabf8ca534814f1b3dd (patch)
tree0ed74726957e590f6506e378366ea15bf21bfcbd /server/sonar-web/src/main/js/apps/quality-gates/layout.js
parentce60ac8d2e137f33bb111668e54e78c195c73d79 (diff)
downloadsonarqube-890ab0b59cdb3902f4869eabf8ca534814f1b3dd.tar.gz
sonarqube-890ab0b59cdb3902f4869eabf8ca534814f1b3dd.zip
migrate js apps to es2015 modules
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/layout.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/layout.js45
1 files changed, 22 insertions, 23 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/layout.js b/server/sonar-web/src/main/js/apps/quality-gates/layout.js
index db02143caa6..5d0a65ae47b 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/layout.js
+++ b/server/sonar-web/src/main/js/apps/quality-gates/layout.js
@@ -1,28 +1,27 @@
-define([
- './intro-view',
- './templates'
-], function (IntroView) {
+import Marionette from 'backbone.marionette';
+import IntroView from './intro-view';
+import './templates';
- return Marionette.LayoutView.extend({
- template: Templates['quality-gates-layout'],
+export default Marionette.LayoutView.extend({
+ template: Templates['quality-gates-layout'],
- regions: {
- headerRegion: '.search-navigator-workspace-header',
- actionsRegion: '.search-navigator-filters',
- resultsRegion: '.quality-gates-results',
- detailsRegion: '.search-navigator-workspace-details'
- },
+ regions: {
+ headerRegion: '.search-navigator-workspace-header',
+ actionsRegion: '.search-navigator-filters',
+ resultsRegion: '.quality-gates-results',
+ detailsRegion: '.search-navigator-workspace-details'
+ },
- onRender: function () {
- var top = this.$('.search-navigator').offset().top;
- this.$('.search-navigator-workspace-header').css({ top: top });
- this.$('.search-navigator-side').css({ top: top }).isolatedScroll();
- this.renderIntro();
- },
-
- renderIntro: function () {
- this.detailsRegion.show(new IntroView());
- }
- });
+ onRender: function () {
+ var top = this.$('.search-navigator').offset().top;
+ this.$('.search-navigator-workspace-header').css({ top: top });
+ this.$('.search-navigator-side').css({ top: top }).isolatedScroll();
+ this.renderIntro();
+ },
+ renderIntro: function () {
+ this.detailsRegion.show(new IntroView());
+ }
});
+
+