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
6ae2e891
Commit
6ae2e891
authored
Oct 02, 2015
by
Tim Krones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Enable "Add" buttons after removing child that can only be added
once (for Step Builder and Review Step).
parent
feaf5da2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
problem_builder/public/js/mentoring_with_steps_edit.js
+7
-2
problem_builder/public/js/review_step_edit.js
+7
-2
No files found.
problem_builder/public/js/mentoring_with_steps_edit.js
View file @
6ae2e891
...
...
@@ -26,8 +26,13 @@ function MentoringWithStepsEdit(runtime, element) {
$buttons
.
on
(
'click'
,
disableButton
);
};
initButtons
(
'sb-review-step'
);
var
updateButtons
=
function
()
{
initButtons
(
'sb-review-step'
);
};
ProblemBuilderUtil
.
transformClarifications
(
element
);
StudioEditableXBlockMixin
(
runtime
,
element
);
updateButtons
();
runtime
.
listenTo
(
'deleted-child'
,
updateButtons
);
}
problem_builder/public/js/review_step_edit.js
View file @
6ae2e891
...
...
@@ -27,8 +27,13 @@ function ReviewStepEdit(runtime, element) {
$buttons
.
on
(
'click'
,
disableButton
);
};
initButtons
(
'pb-message'
);
var
updateButtons
=
function
()
{
initButtons
(
'pb-message'
);
};
ProblemBuilderUtil
.
transformClarifications
(
element
);
StudioEditableXBlockMixin
(
runtime
,
element
);
updateButtons
();
runtime
.
listenTo
(
'deleted-child'
,
updateButtons
);
}
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