blob: 2eeece27cd04ee3b64fa8b0355029f0925f03f49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import Marionette from 'backbone.marionette';
import IntroView from './intro-view';
import Template from './templates/quality-gates-layout.hbs';
export default Marionette.LayoutView.extend({
template: Template,
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());
}
});
|