Skip to content

Commit

Permalink
Add Mobile Support
Browse files Browse the repository at this point in the history
Decorated the student view with the XBlocks_supports for multi_device
in order to solve the compatibility issue with mobile handheld devices.
  • Loading branch information
libremente committed Jan 27, 2017
1 parent 99c8ba4 commit fd4fe56
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grademebutton/grademebutton.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def workbench_scenarios():
help="This is the text displayed on the button.",
)

# 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):
"""
Build the fragment for the default student view
Expand Down

0 comments on commit fd4fe56

Please sign in to comment.