From 7d1fd538f2d3dbeba6f21f31bb594c312f870bb2 Mon Sep 17 00:00:00 2001 From: kimth Date: Tue, 21 Aug 2012 13:36:49 -0400 Subject: [PATCH] Use data(...) rather than hidden span --- common/lib/xmodule/xmodule/js/src/sequence/display.coffee | 3 +-- lms/templates/seq_module.html | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/sequence/display.coffee b/common/lib/xmodule/xmodule/js/src/sequence/display.coffee index 421f55be2a..38291be2ef 100644 --- a/common/lib/xmodule/xmodule/js/src/sequence/display.coffee +++ b/common/lib/xmodule/xmodule/js/src/sequence/display.coffee @@ -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')) diff --git a/lms/templates/seq_module.html b/lms/templates/seq_module.html index dac4823f37..be0f4902d4 100644 --- a/lms/templates/seq_module.html +++ b/lms/templates/seq_module.html @@ -1,5 +1,4 @@ -
- +