Commit 4a43427c by Calen Pennington

Add block.name to xblock javascript frontend

parent 47a3172b
......@@ -93,6 +93,9 @@ def wrap_xblock(runtime_class, block, view, frag, context, usage_id_serializer,
data['usage-id'] = usage_id_serializer(block.scope_ids.usage_id)
data['request-token'] = request_token
if block.name:
data['name'] = block.name
template_context = {
'content': block.display_name if display_name_only else frag.content,
'classes': css_classes,
......
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