Skip to content

backport: reset a Randomized Content Block via AJAX - #452

Merged
Agrendalath merged 1 commit into
opencraft-release/lilac.2-echofrom
agrendalath/bb-5258-reset_randomized_content_block
Jan 20, 2022
Merged

backport: reset a Randomized Content Block via AJAX#452
Agrendalath merged 1 commit into
opencraft-release/lilac.2-echofrom
agrendalath/bb-5258-reset_randomized_content_block

Conversation

@Agrendalath

Copy link
Copy Markdown
Member

This backports edx#29728 to the echo branch.

This makes the reset button to refresh the contents of a Randomized
Content Block (RCB) without reloading the full page by fetching a new
set of problems in the "reset" response and replacing the DOM contents.

The reset button returns the student view as a string and the client
uses the HtmlUtils package to replace the contents and reinitializes the
XBlock.

This allows students to use the RCB as a flash card system.
@Agrendalath Agrendalath self-assigned this Jan 20, 2022
@Agrendalath

Copy link
Copy Markdown
Member Author

Merging as a clean cherry-pick.

@Agrendalath
Agrendalath merged this pull request into opencraft-release/lilac.2-echo Jan 20, 2022
@Agrendalath
Agrendalath deleted the agrendalath/bb-5258-reset_randomized_content_block branch January 20, 2022 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants