diff --git a/lms/startup.py b/lms/startup.py index 7b51151ca7..6837383130 100644 --- a/lms/startup.py +++ b/lms/startup.py @@ -9,6 +9,7 @@ from django.conf import settings settings.INSTALLED_APPS # pylint: disable=W0104 from django_startup import autostartup +from xmodule.modulestore.django import modulestore log = logging.getLogger(__name__) @@ -17,3 +18,8 @@ def run(): Executed during django startup """ autostartup() + + # trigger a forced initialization of our modulestores since this can take a while to complete + # and we want this done before HTTP requests are accepted + for store_name in settings.MODULESTORE: + modulestore(store_name) diff --git a/lms/templates/forgot_password_modal.html b/lms/templates/forgot_password_modal.html index a23df08cfc..411b863e00 100644 --- a/lms/templates/forgot_password_modal.html +++ b/lms/templates/forgot_password_modal.html @@ -75,5 +75,15 @@ cycle_modal_tab("#pwd_reset_email", "#pwd_reset_button") cycle_modal_tab("#pwd_reset_button", "#forgot-password-modal .close-modal") + // Hitting the ESC key will exit the modal + $("#forgot-password-modal").on("keydown", function(e) { + var keyCode = e.keyCode || e.which; + // 27 is the ESC key + if (keyCode === 27) { + e.preventDefault(); + $("#forgot-password-modal .close-modal").click(); + } + }); + })(this) diff --git a/lms/templates/help_modal.html b/lms/templates/help_modal.html index 1d2a416f5f..f4f1c4ea15 100644 --- a/lms/templates/help_modal.html +++ b/lms/templates/help_modal.html @@ -61,7 +61,7 @@ discussion_link = get_discussion_link(course) if course else None
% if not user.is_authenticated(): - + % endif @@ -80,8 +80,8 @@ discussion_link = get_discussion_link(course) if course else None -