Merge pull request #2724 from edx/will/studio-xblock-save

Native XBlock Studio Save UI
This commit is contained in:
Will Daly
2014-02-27 10:50:51 -05:00
7 changed files with 95 additions and 3 deletions

View File

@@ -2,4 +2,13 @@ class XBlock.Runtime.v1
children: (block) => $(block).prop('xblock_children')
childMap: (block, childName) =>
for child in @children(block)
return child if child.name == childName
return child if child.name == childName
# Notify the client-side runtime that an event has occurred.
# This allows the runtime to update the UI in a consistent way
# for different XBlocks.
# `name` is an arbitrary string (for example, "save")
# `data` is an object (for example, {state: 'starting'})
# The default implementation is a no-op.
# WARNING: This is an interim solution and not officially supported!
notify: (name, data) -> undefined