Use data(...) rather than hidden span

This commit is contained in:
kimth
2012-08-21 13:36:49 -04:00
parent 9b3f560c98
commit 7d1fd538f2
2 changed files with 2 additions and 4 deletions

View File

@@ -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'))