Commit 43ecf44f by Piotr Mitros

Typos and accidental debug code

parent 405c7d95
...@@ -50,7 +50,7 @@ class RateXBlock(XBlock): ...@@ -50,7 +50,7 @@ class RateXBlock(XBlock):
# will default to the ones in default_prompt. # will default to the ones in default_prompt.
prompts = List( prompts = List(
default=[{'freeform':"What could be improved to make this section more clear?", default=[{'freeform':"What could be improved to make this section more clear?",
'likert':"Was this section clear or confusing?."}], 'likert':"Was this section clear or confusing?"}],
scope=Scope.settings, scope=Scope.settings,
help="Freeform user prompt", help="Freeform user prompt",
xml_node = True xml_node = True
...@@ -152,9 +152,8 @@ class RateXBlock(XBlock): ...@@ -152,9 +152,8 @@ class RateXBlock(XBlock):
prompt = self.get_prompt(0) prompt = self.get_prompt(0)
frag = Fragment(unicode(html_str).format(**prompt)) frag = Fragment(unicode(html_str).format(**prompt))
js_str = pkg_resources.resource_string(__name__, "static/js/src/studio.js") js_str = pkg_resources.resource_string(__name__, "static/js/src/studio.js")
#frag.add_javascript(unicode(js_str)) frag.add_javascript(unicode(js_str))
frag.initialize_js('RateBlock') frag.initialize_js('RateBlock')
return frag return frag
@XBlock.json_handler @XBlock.json_handler
......
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