From 342220f0f413450e124f9e320afc18b11dcfc6a7 Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Wed, 20 Feb 2013 18:50:16 -0500 Subject: [PATCH] js syntax --- lms/templates/login.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/templates/login.html b/lms/templates/login.html index aa2f5181cd..d0e2f11eed 100644 --- a/lms/templates/login.html +++ b/lms/templates/login.html @@ -37,9 +37,9 @@ if(json.success) { $('.message.submission-error').removeClass('is-shown'); var u=decodeURI(window.location.search); - next=u.split("next=")[1] + next=u.split("next=")[1]; if (next) { - location.href=next + location.href=next; } else { location.href="${reverse('dashboard')}"; }