Commit 00d7760d by polesye

Add redirect.

parent 2b1712af
$(document).ajaxError(function (event, jXHR) {
if (jXHR.status === 403) {
alert(gettext('You\'re logged out. Redirecting on login page.'));
window.location = '/accounts/login';
}
});
......@@ -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'/>
......
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