Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c1fd0ca3
Commit
c1fd0ca3
authored
Apr 10, 2014
by
Andy Armstrong
Committed by
cahrens
May 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch the container page to use the new view
parent
fd7142bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
cms/static/js/views/pages/container.js
+3
-4
No files found.
cms/static/js/views/pages/container.js
View file @
c1fd0ca3
...
...
@@ -2,8 +2,8 @@
* XBlockContainerView is used to display an xblock which has children, and allows the
* user to interact with the children.
*/
define
([
"jquery"
,
"underscore"
,
"gettext"
,
"js/views/feedback_notification"
,
"js/views/feedback_prompt"
,
"js/views/baseview"
,
"js/views/xblock"
,
"js/views/modals/edit_xblock"
,
"js/models/xblock_info"
],
function
(
$
,
_
,
gettext
,
NotificationView
,
PromptView
,
BaseView
,
XBlockView
,
EditXBlockModal
,
XBlockInfo
)
{
define
([
"jquery"
,
"underscore"
,
"gettext"
,
"js/views/feedback_notification"
,
"js/views/feedback_prompt"
,
"js/views/baseview"
,
"js/views/
container"
,
"js/views/
xblock"
,
"js/views/modals/edit_xblock"
,
"js/models/xblock_info"
],
function
(
$
,
_
,
gettext
,
NotificationView
,
PromptView
,
BaseView
,
ContainerView
,
XBlockView
,
EditXBlockModal
,
XBlockInfo
)
{
var
XBlockContainerView
=
BaseView
.
extend
({
// takes XBlockInfo as a model
...
...
@@ -13,7 +13,7 @@ define(["jquery", "underscore", "gettext", "js/views/feedback_notification", "js
initialize
:
function
()
{
BaseView
.
prototype
.
initialize
.
call
(
this
);
this
.
noContentElement
=
this
.
$
(
'.no-container-content'
);
this
.
xblockView
=
new
XBlock
View
({
this
.
xblockView
=
new
Container
View
({
el
:
this
.
$
(
'.wrapper-xblock'
),
model
:
this
.
model
,
view
:
this
.
view
...
...
@@ -184,4 +184,3 @@ define(["jquery", "underscore", "gettext", "js/views/feedback_notification", "js
return
XBlockContainerView
;
});
// end define();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment