fix reply/return to annotation links

STUD-1629
This commit is contained in:
zubair-arbi
2014-05-28 17:54:22 +05:00
parent 8191d3c77e
commit 6cb6680139
6 changed files with 94 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
<form class="annotation-input">
<div class="script_placeholder" data-src="/static/js/capa/annotationinput.js"/>
<div class="script_placeholder" data-src="${STATIC_URL}js/capa/annotationinput.js"/>
<div class="annotation-header">
${title}

View File

@@ -9,7 +9,7 @@
<a class="annotatable-toggle annotatable-toggle-instructions expanded" href="javascript:void(0)">Collapse Instructions</a>
</div>
<div class="annotatable-section-body annotatable-instructions">
<div><p>The main goal of this exercise is to start practicing the art of slow reading.</p>
<div><p>The main goal of this exercise is to start practicing the art of slow reading.</p></div>
</div>
</div>
<div class="annotatable-section">

View File

@@ -12,9 +12,9 @@ class @Annotatable
# these selectors are for responding to events from the annotation capa problem type
problemXModuleSelector: '.xmodule_CapaModule'
problemSelector: 'section.problem'
problemInputSelector: 'section.problem .annotation-input'
problemReturnSelector: 'section.problem .annotation-return'
problemSelector: 'div.problem'
problemInputSelector: 'div.problem .annotation-input'
problemReturnSelector: 'div.problem .annotation-return'
constructor: (el) ->
console.log 'loaded Annotatable' if @_debug