Skip to content

Commit

Permalink
refactor: deprecate WordCloudXBlock and extract it to xblocks-contrib…
Browse files Browse the repository at this point in the history
… repo
  • Loading branch information
farhan committed Jul 24, 2024
1 parent e12ec1b commit d8ff25c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"video = xmodule.video_block:VideoBlock",
"videoalpha = xmodule.video_block:VideoBlock",
"videodev = xmodule.template_block:TranslateCustomTagBlock",
"word_cloud = xmodule.word_cloud_block:WordCloudBlock",
"word_cloud_deprecated = xmodule.word_cloud_block:WordCloudBlock",
"wrapper = xmodule.wrapper_block:WrapperBlock",
]
XBLOCKS_ASIDES = [
Expand Down
2 changes: 1 addition & 1 deletion xmodule/assets/word_cloud/src/js/word_cloud_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function generateUniqueId(wordCloudId, counter) {
export default class WordCloudMain {
constructor(el) {
// eslint-disable-next-line no-undef
this.wordCloudEl = $(el).find('.word_cloud');
this.wordCloudEl = $(el).find('.word_cloud_deprecated');

// Get the URL to which we will post the users words.
this.ajax_url = this.wordCloudEl.data('ajax-url');
Expand Down
2 changes: 1 addition & 1 deletion xmodule/word_cloud_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def student_view(self, context): # lint-amnesty, pylint: disable=unused-argumen
'ajax_url': self.ajax_url,
'display_name': self.display_name,
'instructions': self.instructions,
'element_class': self.location.block_type,
'element_class': 'word_cloud_deprecated',
'element_id': self.location.html_id(),
'num_inputs': self.num_inputs,
'submitted': self.submitted,
Expand Down

0 comments on commit d8ff25c

Please sign in to comment.