Commit 7d1fd538 by kimth

Use data(...) rather than hidden span

parent 9b3f560c
......@@ -3,8 +3,7 @@ class @Sequence
@el = $(element).find('.sequence')
@contents = @$('.seq_contents')
@id = @el.data('id')
@modx_url = @$('#course_modx_root').text()
@modx_url = @modx_url.substr(1,@modx_url.length-2) # Remove enclosing quotes
@modx_url = @el.data('course_modx_root')
@initProgress()
@bind()
@render parseInt(@el.data('position'))
......
<div id="sequence_${element_id}" class="sequence" data-id="${item_id}" data-position="${position}" >
<span style="display:none" id="course_modx_root">"/course/modx"</span>
<div id="sequence_${element_id}" class="sequence" data-id="${item_id}" data-position="${position}" data-course_modx_root="/course/modx" >
<nav aria-label="Section Navigation" class="sequence-nav">
<ol id="sequence-list">
% for idx, item in enumerate(items):
......
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