Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
4e3e2ec7
Commit
4e3e2ec7
authored
Feb 13, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If user was trying to get to a specific page but had to log in, let them
get to that page once they've logged in.
parent
3450c728
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
cms/templates/login.html
+5
-1
No files found.
cms/templates/login.html
View file @
4e3e2ec7
...
...
@@ -77,7 +77,11 @@
submit_data
,
function
(
json
)
{
if
(
json
.
success
)
{
location
.
href
=
"${reverse('homepage')}"
;
var
next
=
/next=
([^
&
]
*
)
/g
.
exec
(
decodeURIComponent
(
window
.
location
.
search
));
if
(
next
.
length
>
1
)
{
location
.
href
=
next
[
1
];
}
else
location
.
href
=
"${reverse('homepage')}"
;
}
else
if
(
$
(
'#login_error'
).
length
==
0
)
{
$
(
'#login_form'
).
prepend
(
'<div id="login_error" class="message message-status error">'
+
json
.
value
+
'</span></div>'
);
$
(
'#login_error'
).
addClass
(
'is-shown'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment