Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport: reset a Randomized Content Block via AJAX #452

Conversation

Agrendalath
Copy link
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
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