diff --git a/lms/templates/forgot_password_modal.html b/lms/templates/forgot_password_modal.html index 70467d2dd0..f0f571a817 100644 --- a/lms/templates/forgot_password_modal.html +++ b/lms/templates/forgot_password_modal.html @@ -20,7 +20,7 @@ - +

@@ -40,5 +40,10 @@ $('#pwd_error').stop().css("display", "block"); } }); + + // removing close link's default behavior + $('#login-modal .close-modal').click(function(e) { + e.preventDefault(); + }); })(this) diff --git a/lms/templates/login_modal.html b/lms/templates/login_modal.html index 4c190bf024..de1c437caf 100644 --- a/lms/templates/login_modal.html +++ b/lms/templates/login_modal.html @@ -37,7 +37,7 @@ % endif -
+

@@ -62,5 +62,10 @@ $('#login_error').html(json.value).stop().css("display", "block"); } }); + + // removing close link's default behavior + $('#login-modal .close-modal').click(function(e) { + e.preventDefault(); + }); })(this) diff --git a/lms/templates/signup_modal.html b/lms/templates/signup_modal.html index fd3b0bb902..a68e36e902 100644 --- a/lms/templates/signup_modal.html +++ b/lms/templates/signup_modal.html @@ -115,7 +115,7 @@ -
+

@@ -134,5 +134,10 @@ $("[data-field='"+json.field+"']").addClass('field-error') } }); + + // removing close link's default behavior + $('#login-modal .close-modal').click(function(e) { + e.preventDefault(); + }); })(this)