diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-02-22 10:39:30 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-02-22 11:17:19 +0100 |
commit | ef39ea00c5822b114d728f73d92eed6635437b98 (patch) | |
tree | 14cc3591232af48f70ab6d440fc116e0bd05e739 /server/sonar-web/src/main/js/apps/coding-rules/layout.js | |
parent | a8b9c87ee38ab2458bd0293b1ee099266b7789ab (diff) | |
download | sonarqube-ef39ea00c5822b114d728f73d92eed6635437b98.tar.gz sonarqube-ef39ea00c5822b114d728f73d92eed6635437b98.zip |
improve code quality
Diffstat (limited to 'server/sonar-web/src/main/js/apps/coding-rules/layout.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/layout.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/layout.js b/server/sonar-web/src/main/js/apps/coding-rules/layout.js index 20a559ad713..9d40b1c5833 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/layout.js +++ b/server/sonar-web/src/main/js/apps/coding-rules/layout.js @@ -32,27 +32,27 @@ export default Marionette.LayoutView.extend({ workspaceDetailsRegion: '.search-navigator-workspace-details' }, - onRender: function () { - var navigator = this.$('.search-navigator'); - var top = navigator.offset().top; - this.$('.search-navigator-workspace-header').css({ top: top }); - this.$('.search-navigator-side').css({ top: top }).isolatedScroll(); + onRender () { + const navigator = this.$('.search-navigator'); + const top = navigator.offset().top; + this.$('.search-navigator-workspace-header').css({ top }); + this.$('.search-navigator-side').css({ top }).isolatedScroll(); }, - showDetails: function () { + showDetails () { this.scroll = $(window).scrollTop(); this.$('.search-navigator').addClass('search-navigator-extended-view'); }, - hideDetails: function () { + hideDetails () { this.$('.search-navigator').removeClass('search-navigator-extended-view'); if (this.scroll != null) { $(window).scrollTop(this.scroll); } }, - detailsShow: function () { + detailsShow () { return this.$('.search-navigator').is('.search-navigator-extended-view'); } |