Merge pull request #77 from MITx/ps-fix-courseware-nav-ios
Fix problem with sequence navigation on iOS
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user