Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-poll
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
edx
xblock-poll
Commits
5927c6aa
Commit
5927c6aa
authored
Sep 20, 2017
by
Braden MacDonald
Committed by
GitHub
Sep 20, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #37 from open-craft/mobile-friendly
Mark Poll and Survey XBlocks as Mobile friendly
parents
0e2ef351
5f0624b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
poll/poll.py
+2
-0
No files found.
poll/poll.py
View file @
5927c6aa
...
...
@@ -396,6 +396,7 @@ class PollBlock(PollBase):
return
None
@XBlock.supports
(
"multi_device"
)
# Mark as mobile-friendly
def
student_view
(
self
,
context
=
None
):
"""
The primary view of the PollBlock, shown to students
...
...
@@ -655,6 +656,7 @@ class SurveyBlock(PollBase):
choices
=
Dict
(
help
=
_
(
"The user's answers"
),
scope
=
Scope
.
user_state
)
event_namespace
=
'xblock.survey'
@XBlock.supports
(
"multi_device"
)
# Mark as mobile-friendly
def
student_view
(
self
,
context
=
None
):
"""
The primary view of the SurveyBlock, shown to students
...
...
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