diff --git a/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js b/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js +++ b/document_alamofire/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/document_alamofire/after/docs/js/jazzy.js b/document_alamofire/after/docs/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_alamofire/after/docs/js/jazzy.js +++ b/document_alamofire/after/docs/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/document_alamofire1.2/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js b/document_alamofire1.2/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_alamofire1.2/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js +++ b/document_alamofire1.2/after/docs/docsets/Alamofire.docset/Contents/Resources/Documents/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/document_alamofire1.2/after/docs/js/jazzy.js b/document_alamofire1.2/after/docs/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_alamofire1.2/after/docs/js/jazzy.js +++ b/document_alamofire1.2/after/docs/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/document_moya_podspec/after/docs/docsets/Moya.docset/Contents/Resources/Documents/js/jazzy.js b/document_moya_podspec/after/docs/docsets/Moya.docset/Contents/Resources/Documents/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_moya_podspec/after/docs/docsets/Moya.docset/Contents/Resources/Documents/js/jazzy.js +++ b/document_moya_podspec/after/docs/docsets/Moya.docset/Contents/Resources/Documents/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/document_moya_podspec/after/docs/js/jazzy.js b/document_moya_podspec/after/docs/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_moya_podspec/after/docs/js/jazzy.js +++ b/document_moya_podspec/after/docs/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/document_realm_objc/after/docs/docsets/Realm.docset/Contents/Resources/Documents/js/jazzy.js b/document_realm_objc/after/docs/docsets/Realm.docset/Contents/Resources/Documents/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_realm_objc/after/docs/docsets/Realm.docset/Contents/Resources/Documents/js/jazzy.js +++ b/document_realm_objc/after/docs/docsets/Realm.docset/Contents/Resources/Documents/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/document_realm_objc/after/docs/js/jazzy.js b/document_realm_objc/after/docs/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_realm_objc/after/docs/js/jazzy.js +++ b/document_realm_objc/after/docs/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/document_realm_swift/after/docs/docsets/RealmSwift.docset/Contents/Resources/Documents/js/jazzy.js b/document_realm_swift/after/docs/docsets/RealmSwift.docset/Contents/Resources/Documents/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_realm_swift/after/docs/docsets/RealmSwift.docset/Contents/Resources/Documents/js/jazzy.js +++ b/document_realm_swift/after/docs/docsets/RealmSwift.docset/Contents/Resources/Documents/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/document_realm_swift/after/docs/js/jazzy.js b/document_realm_swift/after/docs/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/document_realm_swift/after/docs/js/jazzy.js +++ b/document_realm_swift/after/docs/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/js/jazzy.js b/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/js/jazzy.js +++ b/misc_jazzy_features/after/docs/docsets/MiscJazzyFeatures.docset/Contents/Resources/Documents/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); }); diff --git a/misc_jazzy_features/after/docs/js/jazzy.js b/misc_jazzy_features/after/docs/js/jazzy.js index a32d4008f..4ff9455b6 100755 --- a/misc_jazzy_features/after/docs/js/jazzy.js +++ b/misc_jazzy_features/after/docs/js/jazzy.js @@ -17,7 +17,7 @@ $(document).ready(function() { }); // On token click, toggle its discussion and animate token.marginLeft -$(".token").click(function() { +$(".token").click(function(event) { if (window.jazzy.docset) { return; } @@ -28,4 +28,13 @@ $(".token").click(function() { link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration); $content = link.parent().parent().next(); $content.slideToggle(animationDuration); + + // Keeps the document from jumping to the hash. + var href = $(this).attr('href'); + if (history.pushState) { + history.pushState({}, '', href); + } else { + location.hash = href; + } + event.preventDefault(); });