This is the changes for STUD-1244, which introduces the ability for Studio to display arbitrarily nested xblocks. In this change, a new container page is introduced which can display nested xblocks. In particular, the xblock type of 'vertical' is special cased to be shown inline as a collapsible section. The unit page is mostly unchanged, except that container xblock's are shown as a link to their container page, rather than being shown inline.
16 lines
402 B
JavaScript
16 lines
402 B
JavaScript
define(["backbone", "js/utils/module"], function(Backbone, ModuleUtils) {
|
|
var XBlockInfo = Backbone.Model.extend({
|
|
|
|
urlRoot: ModuleUtils.urlRoot,
|
|
|
|
defaults: {
|
|
"id": null,
|
|
"display_name": null,
|
|
"category": null,
|
|
"is_draft": null,
|
|
"is_container": null,
|
|
"children": []
|
|
}
|
|
});
|
|
return XBlockInfo;
|
|
}); |