Rewritten video module

This commit is contained in:
Prem Sichanugrist
2012-05-01 17:54:11 -04:00
parent 0b26609846
commit 8624927fc4
14 changed files with 530 additions and 188 deletions

View File

@@ -13,6 +13,8 @@ class window.Courseware
autoHeight: false
$('#open_close_accordion a').click navigation.toggle
$('#accordion').show()
log: (event, ui) ->
log_event 'accordion',
newheader: ui.newHeader.text()

View File

@@ -2,7 +2,11 @@ $ ->
$.ajaxSetup
headers : { 'X-CSRFToken': $.cookie 'csrftoken' }
window.onTouchBasedDevice = ->
navigator.userAgent.match /iPhone|iPod|iPad/i
Calculator.bind()
Courseware.bind()
FeedbackForm.bind()
$("a[rel*=leanModal]").leanModal()