Commit 342220f0 by John Jarvis

js syntax

parent 4b93ef49
...@@ -37,9 +37,9 @@ ...@@ -37,9 +37,9 @@
if(json.success) { if(json.success) {
$('.message.submission-error').removeClass('is-shown'); $('.message.submission-error').removeClass('is-shown');
var u=decodeURI(window.location.search); var u=decodeURI(window.location.search);
next=u.split("next=")[1] next=u.split("next=")[1];
if (next) { if (next) {
location.href=next location.href=next;
} else { } else {
location.href="${reverse('dashboard')}"; location.href="${reverse('dashboard')}";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment