Commit 08a1d9ef by Matjaz Gregoric

Enable webview for Poll & Survey blocks.

parent 1686adc2
...@@ -360,6 +360,7 @@ class PollBlock(PollBase): ...@@ -360,6 +360,7 @@ class PollBlock(PollBase):
else: else:
return None return None
@XBlock.supports("multi_device") # Mark as mobile-friendly
def student_view(self, context=None): def student_view(self, context=None):
""" """
The primary view of the PollBlock, shown to students The primary view of the PollBlock, shown to students
...@@ -582,6 +583,7 @@ class SurveyBlock(PollBase): ...@@ -582,6 +583,7 @@ class SurveyBlock(PollBase):
choices = Dict(help="The user's answers", scope=Scope.user_state) choices = Dict(help="The user's answers", scope=Scope.user_state)
event_namespace = 'xblock.survey' event_namespace = 'xblock.survey'
@XBlock.supports("multi_device") # Mark as mobile-friendly
def student_view(self, context=None): def student_view(self, context=None):
""" """
The primary view of the SurveyBlock, shown to students The primary view of the SurveyBlock, shown to students
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment