Commit Graph

17 Commits

Author SHA1 Message Date
Victor Shnayder
3961a5d8ca Progress tracking cleanup.
* use clearer names for the two status strings passed to js
* add functions to do canonical conversion of progress to js string
* fix updating bug in sequence.coffee
* add some todo comments and other docs to make future expansion easier
2012-06-21 11:05:31 -04:00
Victor Shnayder
b5368f2a4f Initial progress display.
* add module_from_xml param to I4xSystem
* use it to implement xmodule.get_children()
* fix a few comments here and there
* Render-time progress display for seq and vertical modules.
  - Computes fraction of subproblems done.
* Pass problem state back to js during ajax calls.
* general cleanup in capa_module.py
* add progress_changed and progress fields to json returned from each ajax handler

* Coffeescript changes to hook up sequence tracking of problem progress

* net result: sequence 'a' tags now have a progress class
* properly set css class on initial load
* fire event when progress changes after ajax calls
* also save state in 'progress' property of problems-wrapper tag
* event handler finds those tags, computes updated progress
2012-06-21 11:05:30 -04:00
Prem Sichanugrist
8dc28549c2 Use existential operator 2012-06-21 11:05:25 -04:00
Prem Sichanugrist
8fc84000a8 Make sure we don't show volume control on iOS 2012-06-21 11:05:24 -04:00
Prem Sichanugrist
19e97de0fb Add video volume control to video player 2012-06-21 11:05:24 -04:00
Prem Sichanugrist
e04329f486 Be specific on video progress slider handle
Using `.ui-slider-handle` was too broad.
2012-06-21 11:05:24 -04:00
Prem Sichanugrist
64b4a4a0fe Create Calculator and Feedback form on every page 2012-06-21 11:05:24 -04:00
Prem Sichanugrist
59a13e861b Cleanup show answer code 2012-06-21 11:05:22 -04:00
ichuang
e4cf0ac835 problem.coffee : queue mathjax typesetting just once 2012-06-21 11:05:22 -04:00
ichuang
21e2ebee8b problem.coffee change: show answer -> also show solution_* & do mathjax typeset 2012-06-21 11:05:19 -04:00
ichuang
b8408a1529 first pass in capa cleanup:
- responsetype used to be instantiated multiple times(!) in capa_problem
     now it is instantiated once, and stored in self.responders
   - responsetypes.GenericResponse restructured; each superclass
     show now provide setup_response (and not __init__), and may
     provide get_max_score(); general __init__ provided to
     clean up superclasses.
2012-06-21 11:05:19 -04:00
Matthew Mongeau
6297e1df23 wip modal 2012-06-21 11:05:18 -04:00
Matthew Mongeau
e048b3251d Get dropdown working 2012-06-14 14:19:47 -04:00
Prem Sichanugrist
b4ed14f4f7 Handle the case where histogram score can be null
This will leave out the student that never attempt the question and
fixes the error with histogram rendering.
2012-06-11 16:07:09 -04:00
Prem Sichanugrist
eb70ef4c07 Directly call toggleArrow in sequence render
There might be a chance that an error got thrown after 'contentChanged'
event was fired and stop the `toggleArrow()` method to be called. This
will make sure that the navigation will still be working even some
element in the content is failed.
2012-06-11 16:03:22 -04:00
Prem Sichanugrist
ac4f09ac4e Replace dynamite code with tested version 2012-06-08 11:16:03 -04:00
Calen Pennington
5ba03130aa Moving LMS code into subdirectory 2012-06-06 14:09:01 -04:00