Skip to content

Commit

Permalink
Merge pull request #6 from libremente/master
Browse files Browse the repository at this point in the history
Add Mobile Support
  • Loading branch information
caesar2164 authored Feb 6, 2017
2 parents df72cd2 + 14ecd0b commit 41d8240
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.coverage
.tox/
*.pyc
*.egg-info/
4 changes: 4 additions & 0 deletions invideoquiz/invideoquiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ class InVideoQuizXBlock(StudioEditableXBlockMixin, XBlock):
'timemap',
]

# Decorate the view in order to support multiple devices e.g. mobile
# See: https://openedx.atlassian.net/wiki/display/MA/Course+Blocks+API
# section 'View @supports(multi_device) decorator'
@XBlock.supports('multi_device')
def student_view(self, context=None): # pylint: disable=unused-argument
"""
Show to students when viewing courses
Expand Down

0 comments on commit 41d8240

Please sign in to comment.