From c4fa475c7ac98c70b5f4bd295b4b79396737a0a0 Mon Sep 17 00:00:00 2001 From: Anurag Ramdasan Date: Fri, 13 Jun 2014 22:42:45 +0000 Subject: [PATCH] add var declaration for next --- lms/templates/login.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/login.html b/lms/templates/login.html index db46d5e9c3..85d0eb4ae1 100644 --- a/lms/templates/login.html +++ b/lms/templates/login.html @@ -51,7 +51,7 @@ $('#login-form').on('ajax:success', function(event, json, xhr) { if(json.success) { var u=decodeURI(window.location.search); - next=decodeURIComponent(u.split("next=")[1]); + var next=decodeURIComponent(u.split("next=")[1]); if (next && !isExternal(next)) { location.href=next; } else if(json.redirect_url){