diff --git a/app/assets/javascripts/layout.js b/app/assets/javascripts/layout.js index 79f4fcab6..c9f31990b 100644 --- a/app/assets/javascripts/layout.js +++ b/app/assets/javascripts/layout.js @@ -1,18 +1 @@ -$(function() { - var $sidebar = $("#sidebar"); - var $content = $("#content"); - - if (!$sidebar.length || !$content.length) { - return; - } - - var sidebar_offset = $sidebar.offset().top + $sidebar.height(); - var content_offset = $content.offset().top + $content.height(); - var offset = null; - if (sidebar_offset > content_offset) { - offset = sidebar_offset; - } else { - offset = content_offset; - } - $("#page-footer").css({"position": "absolute", "top": offset, "width": "100%", "height": "3em"}); -}); +$(function() {});