Allow Mathjax(Latex) in Student responses

Currently, Latex rendering is only supported for question prompts in ORA2. This
commit introduces Latex rendering in ORA2 peer assessment
view, self assessment view, grade view, and staff-info view. The reason that
this Latex rendering code is inserted directly into ORA2 is that edx-platform,
does not know when to start Latex rendering for ORA2 views that come in via
AJAX. This is a much needed feature for many classes. 
Sounds great, thanks again! This will be a great addition.


On Wed, Aug 20, 2014 at 3:59 PM, sjang92 <notifications@github.com> wrote:

> In openassessment/xblock/static/js/src/lms/oa_grade.js:
>
> > @@ -28,6 +28,10 @@ OpenAssessment.GradeView.prototype = {
> >                  // Load the HTML and install event handlers
> >                  $('#openassessment__grade', view.element).replaceWith(html);
> >                  view.installHandlers();
> > +                // Mathjax should be loaded before Ora2 ajax succeeds
> > +                if (MathJax !== undefined && MathJax !== null) {
> > +                    MathJax.Hub.Queue(['Typeset', MathJax.Hub, $('#openassessment__grade', view.element)[0]]);
>
> That makes sense. Will do and ping you again once I'm done/if I have more
> questions
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/edx/edx-ora2/pull/617/files#r16500799>.
>