Merge pull request #7463 from edx/clytwynec/flaky-mathjax

wait for both window.MathJax and window.MathJax.onReady
This commit is contained in:
Christine Lytwynec
2015-03-24 13:50:57 -04:00
2 changed files with 3 additions and 2 deletions

View File

@@ -53,7 +53,8 @@ VIDEO_MENUS = {
}
@js_defined('window.Video', 'window.RequireJS.require', 'window.jQuery')
@js_defined('window.Video', 'window.RequireJS.require', 'window.jQuery',
'window.MathJax', 'window.MathJax.isReady')
class VideoPage(PageObject):
"""
Video player in the courseware.

View File

@@ -80,7 +80,7 @@ DELAY = 0.5
@js_defined('window.Video', 'window.RequireJS.require', 'window.jQuery', 'window.XModule', 'window.XBlock',
'window.MathJax.isReady')
'window.MathJax', 'window.MathJax.isReady')
class VideoComponentPage(VideoPage):
"""
CMS Video Component Page