diff --git a/cms/static/js/base.js b/cms/static/js/base.js index 0521371b6a..50d69e29cd 100644 --- a/cms/static/js/base.js +++ b/cms/static/js/base.js @@ -83,6 +83,9 @@ $(document).ready(function () { // general link management - smooth scrolling page links $('a[rel*="view"]').bind('click', linkSmoothScroll); + // tender feedback window scrolling + $('a.show-tender').bind('click', linkSmoothScrollTop); + // toggling overview section details $(function () { @@ -160,6 +163,18 @@ function linkSmoothScroll(e) { }); } +function linkSmoothScrollTop(e) { + (e).preventDefault(); + + $.smoothScroll({ + offset: -200, + easing: 'swing', + speed: 1000, + scrollElement: null, + scrollTarget: $('#view-top') + }); +} + function linkNewWindow(e) { window.open($(e.target).attr('href')); e.preventDefault(); diff --git a/cms/templates/widgets/footer.html b/cms/templates/widgets/footer.html index 8f0265cd86..a3674cfe20 100644 --- a/cms/templates/widgets/footer.html +++ b/cms/templates/widgets/footer.html @@ -14,9 +14,13 @@