Commit 103cad0e by Xavier Antoviaque

LMS fix: Use full path instead of `runtime.resources_url()`

which is unsupported by the LMS runtime
parent b21f37f1
......@@ -62,8 +62,9 @@ class MentoringBlock(XBlock, XBlockWithChildrenFragmentsMixin):
fragment.add_javascript(load_resource('static/js/vendor/underscore-min.js'))
fragment.add_javascript(load_resource('static/js/mentoring.js'))
# TODO-LMS-WORKAROUND: Use self.runtime.resources_url() when supported
fragment.add_resource(load_resource('templates/html/mentoring_progress.html').format(
completed=self.runtime.resources_url('images/correct-icon.png')),
completed='/static/images/correct-icon.png'),
"text/html")
fragment.initialize_js('MentoringBlock')
......
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