diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/dashboard/app.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/dashboard/app.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/dashboard/app.js b/server/sonar-web/src/main/js/apps/dashboard/app.js index 4b700eb26c9..9f045a948b2 100644 --- a/server/sonar-web/src/main/js/apps/dashboard/app.js +++ b/server/sonar-web/src/main/js/apps/dashboard/app.js @@ -136,18 +136,3 @@ window.autoResize = function (everyMs, callback) { var debounce = _.debounce(callback, everyMs); $(window).on('resize', debounce); }; - - -$(function () { - var $sidebar = $('#sidebar'); - if ($sidebar.length > 0) { - var $window = $(window), - topOffset = $sidebar.offset().top; - $window.on('scroll', function () { - var scrollTop = $window.scrollTop(), - scrollLeft = $window.scrollLeft(); - $sidebar.toggleClass('sticky', scrollTop > topOffset); - $sidebar.css('left', -scrollLeft + 10); - }); - } -}); |