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
230c0b5b
Commit
230c0b5b
authored
Apr 03, 2014
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more improvements from the review.
parent
b23f17db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
cms/static/js/views/xblock_container.js
+4
-1
cms/static/js/views/xblock_editor.js
+1
-4
No files found.
cms/static/js/views/xblock_container.js
View file @
230c0b5b
...
...
@@ -75,7 +75,10 @@ define(["jquery", "underscore", "js/views/baseview", "js/views/xblock", "js/view
refreshXBlock
:
function
(
xblockInfo
,
xblockElement
)
{
var
self
=
this
,
temporaryView
;
// Create a temporary view to render the updated XBlock into
// There is only one Backbone view created on the container page, which is
// for the container xblock itself. Any child xblocks rendered inside the
// container do not get a Backbone view. Thus, create a temporary XBlock
// around the child element so that it can be refreshed.
temporaryView
=
new
XBlockView
({
el
:
xblockElement
,
model
:
xblockInfo
,
...
...
cms/static/js/views/xblock_editor.js
View file @
230c0b5b
...
...
@@ -106,14 +106,11 @@ define(["jquery", "underscore", "gettext", "js/views/feedback_notification", "js
getXBlockData
:
function
()
{
var
xblock
=
this
.
xblock
,
metadataEditor
=
this
.
getMetadataEditor
(),
metadata
,
data
;
data
=
xblock
.
save
();
metadata
=
data
.
metadata
;
if
(
metadataEditor
)
{
metadata
=
_
.
extend
(
metadata
||
{},
this
.
getChangedMetadata
());
data
.
metadata
=
_
.
extend
(
data
.
metadata
||
{},
this
.
getChangedMetadata
());
}
data
.
metadata
=
metadata
;
return
data
;
},
...
...
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