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
00d7760d
Commit
00d7760d
authored
Jun 10, 2014
by
polesye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add redirect.
parent
2b1712af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
lms/static/js/ajax-error.js
+6
-0
lms/templates/courseware/courseware.html
+2
-0
No files found.
lms/static/js/ajax-error.js
0 → 100644
View file @
00d7760d
$
(
document
).
ajaxError
(
function
(
event
,
jXHR
)
{
if
(
jXHR
.
status
===
403
)
{
alert
(
gettext
(
'You
\'
re logged out. Redirecting on login page.'
));
window
.
location
=
'/accounts/login'
;
}
});
lms/templates/courseware/courseware.html
View file @
00d7760d
...
...
@@ -49,6 +49,8 @@ ${page_title_breadcrumbs(course_name())}
## codemirror
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/codemirror-compressed.js')}"
></script>
<script
type=
"text/javascript"
src=
"${static.url('js/ajax-error.js')}"
></script>
<
%
static:js
group=
'courseware'
/>
<
%
static:js
group=
'discussion'
/>
...
...
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