js syntax

This commit is contained in:
John Jarvis
2013-02-20 18:50:16 -05:00
parent 4b93ef491b
commit 342220f0f4

View File

@@ -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')}";
}