Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion static/canjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ function setScrollPosition() {
}, 250);
}

var $menuButton = $('[for="nav-trigger"]');
var $navTrigger = $('#nav-trigger');

function navigate(href) {
// make sure we're in the right spot
if (href === "javascript://") { // jshint ignore:line
Expand All @@ -174,6 +177,10 @@ function navigate(href) {

loader.start();

if($menuButton.is(':visible')){
$navTrigger.prop('checked', false);
}

navigating = true;
$.ajax(href, {
dataType: "text",
Expand Down Expand Up @@ -463,4 +470,4 @@ function buildTOC() {

toc += Array(level - baseLevel + 1).join('</li></ol>') + "</li></ol>";
$tableOfContents.append(toc);
}
}