From 0cfd915161d598e1f7ecf1595ff46bbb8a8191b3 Mon Sep 17 00:00:00 2001 From: Matthew Mongeau Date: Thu, 19 Jul 2012 16:31:23 -0400 Subject: [PATCH] Link faq to be able to sign up from corresponding question. --- lms/static/js/toggle_login_modal.js | 1 + lms/templates/static_templates/faq.html | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lms/static/js/toggle_login_modal.js b/lms/static/js/toggle_login_modal.js index a92c616245..4f07f81bb5 100644 --- a/lms/static/js/toggle_login_modal.js +++ b/lms/static/js/toggle_login_modal.js @@ -53,6 +53,7 @@ if(notice !== undefined) { $(modal_id).find(".notice").show().html(notice); } + window.scrollTo(0, 0); e.preventDefault(); }); diff --git a/lms/templates/static_templates/faq.html b/lms/templates/static_templates/faq.html index 32dee32b8a..971942586d 100644 --- a/lms/templates/static_templates/faq.html +++ b/lms/templates/static_templates/faq.html @@ -120,7 +120,7 @@

How may I apply to study with edX?

-

Simply complete the online registration form here[link], or click on the "SIGN UP" tab at the top of this page). Enrolling will create your unique student record in the edX database, allows you to enroll in classes, and to receive a certificate on successful completion.

+

Simply complete the online registration form here, or click on the "SIGN UP" tab at the top of this page). Enrolling will create your unique student record in the edX database, allows you to enroll in classes, and to receive a certificate on successful completion.

@@ -140,4 +140,6 @@ - +%if user.is_authenticated(): + <%include file="../signup_modal.html" /> +%endif