Commit 2d8e1226 by polesye

Move js import into courseware js group.

parent 2629b48d
......@@ -830,6 +830,7 @@ courseware_js = (
'coffee/src/' + pth + '.js'
for pth in ['courseware', 'histogram', 'navigation', 'time']
] +
['js/' + pth + '.js' for pth in ['ajax-error']] +
sorted(rooted_glob(PROJECT_ROOT / 'static', 'coffee/src/modules/**/*.js'))
)
......
$(document).ajaxError(function (event, jXHR) {
if (jXHR.status === 401) {
alert(gettext('You\'re logged out. Redirecting on login page.'));
alert(gettext("You're logged out. Redirecting on login page."));
window.location.href = '/accounts/login?next=' + window.location.href;
}
});
......@@ -49,8 +49,6 @@ ${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