Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
caa5bdb4
Commit
caa5bdb4
authored
Nov 05, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: unable to re-order child blocks within Step Builder
parent
ff271b2d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
16 deletions
+5
-16
problem_builder/mentoring.py
+0
-4
problem_builder/plot.py
+0
-4
problem_builder/public/js/container_edit.js
+5
-0
problem_builder/step.py
+0
-4
problem_builder/step_review.py
+0
-4
No files found.
problem_builder/mentoring.py
View file @
caa5bdb4
...
@@ -1124,10 +1124,6 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
...
@@ -1124,10 +1124,6 @@ class MentoringWithExplicitStepsBlock(BaseMentoringBlock, StudioContainerWithNes
"""
"""
Add some HTML to the author view that allows authors to add child blocks.
Add some HTML to the author view that allows authors to add child blocks.
"""
"""
context
[
'wrap_children'
]
=
{
'head'
:
u'<div class="mentoring">'
,
'tail'
:
u'</div>'
}
fragment
=
super
(
MentoringWithExplicitStepsBlock
,
self
)
.
author_edit_view
(
context
)
fragment
=
super
(
MentoringWithExplicitStepsBlock
,
self
)
.
author_edit_view
(
context
)
fragment
.
add_content
(
loader
.
render_template
(
'templates/html/mentoring_url_name.html'
,
{
fragment
.
add_content
(
loader
.
render_template
(
'templates/html/mentoring_url_name.html'
,
{
"url_name"
:
self
.
url_name
"url_name"
:
self
.
url_name
...
...
problem_builder/plot.py
View file @
caa5bdb4
...
@@ -350,10 +350,6 @@ class PlotBlock(StudioEditableXBlockMixin, StudioContainerWithNestedXBlocksMixin
...
@@ -350,10 +350,6 @@ class PlotBlock(StudioEditableXBlockMixin, StudioContainerWithNestedXBlocksMixin
"""
"""
Add some HTML to the author view that allows authors to add child blocks.
Add some HTML to the author view that allows authors to add child blocks.
"""
"""
context
[
'wrap_children'
]
=
{
'head'
:
u'<div class="mentoring">'
,
'tail'
:
u'</div>'
}
fragment
=
super
(
PlotBlock
,
self
)
.
author_edit_view
(
context
)
fragment
=
super
(
PlotBlock
,
self
)
.
author_edit_view
(
context
)
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder-edit.css'
))
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder-edit.css'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/util.js'
))
fragment
.
add_javascript_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/js/util.js'
))
...
...
problem_builder/public/js/container_edit.js
View file @
caa5bdb4
...
@@ -9,4 +9,9 @@ function ProblemBuilderContainerEdit(runtime, element) {
...
@@ -9,4 +9,9 @@ function ProblemBuilderContainerEdit(runtime, element) {
if
(
window
.
ProblemBuilderUtil
)
{
if
(
window
.
ProblemBuilderUtil
)
{
ProblemBuilderUtil
.
transformClarifications
(
element
);
ProblemBuilderUtil
.
transformClarifications
(
element
);
}
}
// Add a "mentoring" class to the root XBlock so we can use it as a
// selector. We cannot just add a div.mentoring wrapper around our children
// since it breaks jQuery drag-and-drop re-ordering of children.
$
(
".wrapper-xblock.level-page > .xblock-render > .xblock"
).
addClass
(
"mentoring"
);
}
}
problem_builder/step.py
View file @
caa5bdb4
...
@@ -212,10 +212,6 @@ class MentoringStepBlock(
...
@@ -212,10 +212,6 @@ class MentoringStepBlock(
Add some HTML to the author view that allows authors to add child blocks.
Add some HTML to the author view that allows authors to add child blocks.
"""
"""
local_context
=
dict
(
context
)
local_context
=
dict
(
context
)
local_context
[
'wrap_children'
]
=
{
'head'
:
u'<div class="mentoring">'
,
'tail'
:
u'</div>'
}
local_context
[
'author_edit_view'
]
=
True
local_context
[
'author_edit_view'
]
=
True
fragment
=
super
(
MentoringStepBlock
,
self
)
.
author_edit_view
(
local_context
)
fragment
=
super
(
MentoringStepBlock
,
self
)
.
author_edit_view
(
local_context
)
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder.css'
))
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder.css'
))
...
...
problem_builder/step_review.py
View file @
caa5bdb4
...
@@ -285,10 +285,6 @@ class ReviewStepBlock(
...
@@ -285,10 +285,6 @@ class ReviewStepBlock(
"""
"""
Add some HTML to the author view that allows authors to add child blocks.
Add some HTML to the author view that allows authors to add child blocks.
"""
"""
context
[
'wrap_children'
]
=
{
'head'
:
u'<div class="mentoring">'
,
'tail'
:
u'</div>'
}
fragment
=
super
(
ReviewStepBlock
,
self
)
.
author_edit_view
(
context
)
fragment
=
super
(
ReviewStepBlock
,
self
)
.
author_edit_view
(
context
)
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder.css'
))
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder.css'
))
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder-edit.css'
))
fragment
.
add_css_url
(
self
.
runtime
.
local_resource_url
(
self
,
'public/css/problem-builder-edit.css'
))
...
...
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