From 0666ea696951d9095f9caa7d49afddf84f1f910b Mon Sep 17 00:00:00 2001 From: Harry Rein Date: Fri, 6 Oct 2017 13:13:56 -0400 Subject: [PATCH] Sock upgrade message on mobile. --- .../static/course_experience/js/CourseSock.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openedx/features/course_experience/static/course_experience/js/CourseSock.js b/openedx/features/course_experience/static/course_experience/js/CourseSock.js index 6b42631072..2c3ad8986d 100644 --- a/openedx/features/course_experience/static/course_experience/js/CourseSock.js +++ b/openedx/features/course_experience/static/course_experience/js/CourseSock.js @@ -24,8 +24,8 @@ export class CourseSock { // eslint-disable-line import/prefer-default-export const distRight = window.outerWidth - ($miniCert.offset().left + $miniCert.width()); // Update positioning when scrolling is in fixed window and screen width is sufficient - if ((documentBottom > startFixed && documentBottom < endFixed) - || $(window).width() < 960) { + if ((documentBottom > startFixed && documentBottom < endFixed + && $(window).width() > 960)) { $upgradeToVerifiedButton.addClass('attached'); $upgradeToVerifiedButton.css('right', `${distRight}px`); } else {