diff --git a/lms/static/js/discussions-temp.js b/lms/static/js/discussions-temp.js index b0ce231eb5..d788739d0f 100644 --- a/lms/static/js/discussions-temp.js +++ b/lms/static/js/discussions-temp.js @@ -58,7 +58,7 @@ $(document).ready(function() { $('.new-post-btn').bind('click', newPost); $('.new-post-cancel').bind('click', closeNewPost); - $('[data-tooltip]').bind({ + $body.delegate('[data-tooltip]', { 'mouseover': showTooltip, 'mousemove': moveTooltip, 'mouseout': hideTooltip, @@ -66,14 +66,6 @@ $(document).ready(function() { }); $body.delegate('.browse-topic-drop-search-input, .form-topic-drop-search-input', 'keyup', filterDrop); - -// $(window).bind('resize', updateSidebar); -// $(window).bind('scroll', updateSidebar); -// $('.discussion-column').bind("input", function (e) { -// console.log("resized"); -// updateSidebar(); -// }) -// updateSidebar(); }); function filterDrop(e) { diff --git a/lms/static/sass/_discussion.scss b/lms/static/sass/_discussion.scss index 3c914d42db..3b511047af 100644 --- a/lms/static/sass/_discussion.scss +++ b/lms/static/sass/_discussion.scss @@ -1400,38 +1400,6 @@ body.discussion { - - .tooltip { - position: absolute; - top: 0; - left: 0; - z-index: 99999; - padding: 0 10px; - border-radius: 3px; - background: rgba(0, 0, 0, .85); - font-size: 11px; - font-weight: 400; - line-height: 26px; - color: #fff; - pointer-events: none; - opacity: 0; - @include transition(opacity .1s); - - &:after { - content: '▾'; - display: block; - position: absolute; - bottom: -14px; - left: 50%; - margin-left: -7px; - font-size: 20px; - color: rgba(0, 0, 0, .85); - } - } - - - - .main-article.new { display: none; padding: 50px; diff --git a/lms/static/sass/course/base/_base.scss b/lms/static/sass/course/base/_base.scss index 1edb9aa7ba..6e502c7852 100644 --- a/lms/static/sass/course/base/_base.scss +++ b/lms/static/sass/course/base/_base.scss @@ -102,3 +102,32 @@ img { background: #444; color: #fff; } + + +.tooltip { + position: absolute; + top: 0; + left: 0; + z-index: 99999; + padding: 0 10px; + border-radius: 3px; + background: rgba(0, 0, 0, .85); + font-size: 11px; + font-weight: 400; + line-height: 26px; + color: #fff; + pointer-events: none; + opacity: 0; + @include transition(opacity .1s); + + &:after { + content: '▾'; + display: block; + position: absolute; + bottom: -14px; + left: 50%; + margin-left: -7px; + font-size: 20px; + color: rgba(0, 0, 0, .85); + } +} \ No newline at end of file