blob: e9ae08550c484d46acf045e90d0bc35090de82da (
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
28
29
30
|
define([
'./intro-view',
'./templates'
], function (IntroView) {
var $ = jQuery;
return Marionette.Layout.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'
},
onRender: function () {
var top = $('.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());
}
});
});
|