Merge pull request #77 from MITx/ps-fix-courseware-nav-ios

Fix problem with sequence navigation on iOS
This commit is contained in:
Calen Pennington
2012-06-01 12:45:28 -07:00
2 changed files with 8 additions and 1 deletions

View File

@@ -12,6 +12,8 @@ $ ->
window.onTouchBasedDevice = ->
navigator.userAgent.match /iPhone|iPod|iPad/i
$('body').addClass 'touch-based-device' if onTouchBasedDevice()
$("a[rel*=leanModal]").leanModal()
$('#csrfmiddlewaretoken').attr 'value', $.cookie('csrftoken')

View File

@@ -123,7 +123,7 @@ nav.sequence-nav {
background-position: center;
}
p {
p {
background: #333;
color: #fff;
display: none;
@@ -231,6 +231,10 @@ nav.sequence-nav {
}
}
}
body.touch-based-device & ol li a:hover p {
display: none;
}
}
@@ -304,3 +308,4 @@ section.course-content {
}
}
}