From c659b1c5f4be972a9237a4b5e6de4153be7314ac Mon Sep 17 00:00:00 2001 From: Graham Lowe Date: Tue, 4 Feb 2014 15:49:54 -0500 Subject: [PATCH] Fix goto_position in sequence coffeescript. Replace single-quotes with double-quotes so that #{@ajaxUrl} is interpolated. --- common/lib/xmodule/xmodule/js/src/sequence/display.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/sequence/display.coffee b/common/lib/xmodule/xmodule/js/src/sequence/display.coffee index 75dc58ca64..260176074c 100644 --- a/common/lib/xmodule/xmodule/js/src/sequence/display.coffee +++ b/common/lib/xmodule/xmodule/js/src/sequence/display.coffee @@ -24,7 +24,7 @@ class @Sequence position_link = @link_for(@position) if position_link and position_link.data('title') document.title = position_link.data('title') + @base_page_title - + hookUpProgressEvent: -> $('.problems-wrapper').bind 'progressChanged', @updateProgress @@ -90,7 +90,7 @@ class @Sequence if @position != new_position if @position != undefined @mark_visited @position - modx_full_url = '#{@ajaxUrl}/goto_position' + modx_full_url = "#{@ajaxUrl}/goto_position" $.postWithPrefix modx_full_url, position: new_position # On Sequence change, fire custom event "sequence:change" on element.