Browse Source
Merge pull request #3136 from abpframework/maliming/docs-patch1
Fix unicode anchor links.
pull/3178/head
Halil İbrahim Kalkan
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
modules/docs/src/Volo.Docs.Web/Pages/Documents/Shared/Scripts/vs.js
|
|
|
@ -47,7 +47,7 @@ |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
var $targetElement = $(hash); |
|
|
|
var $targetElement = $(decodeURIComponent(hash)); |
|
|
|
|
|
|
|
$targetElement = $targetElement.length ? $targetElement : $('[name=' + this.hash.slice(1) + ']'); |
|
|
|
|
|
|
|
@ -77,7 +77,7 @@ |
|
|
|
event.preventDefault(); |
|
|
|
var hash = this.hash; |
|
|
|
$('html, body').animate({ |
|
|
|
scrollTop: $(hash).offset().top |
|
|
|
scrollTop: $(decodeURIComponent(hash)).offset().top |
|
|
|
}, 500, function () { |
|
|
|
window.location.hash = hash; |
|
|
|
}); |
|
|
|
|