mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix site nav
This commit is contained in:
parent
f71db391e6
commit
2e0da6d4ce
@ -355,12 +355,20 @@ InstantClickChangeFns.push(function() {
|
||||
var prevLink = links[currentLinkIndex - 1];
|
||||
var nextLink = links[currentLinkIndex + 1];
|
||||
if (prevLink) {
|
||||
prevNextNavNode.append('<a class="prev-page" href="' + prevLink.href + '">' + prevLink.innerHTML + '</a>');
|
||||
var prevLinkNavNode = $('<a class="prev-page" href="' + prevLink.href + '">' + prevLink.innerHTML + '</a>');
|
||||
if (prevLink.className.indexOf('nav-link-disabled') >= 0) {
|
||||
prevLinkNavNode.attr('disabled', true);
|
||||
}
|
||||
prevNextNavNode.append(prevLinkNavNode);
|
||||
} else {
|
||||
prevNextNavNode.append('<span class="prev-page"></span>');
|
||||
}
|
||||
if (nextLink) {
|
||||
prevNextNavNode.append('<a class="next-page" href="' + nextLink.href + '">' + nextLink.innerHTML + '</a>');
|
||||
var nextLinkNavNode = $('<a class="next-page" href="' + nextLink.href + '">' + nextLink.innerHTML + '</a>');
|
||||
if (nextLink.className.indexOf('nav-link-disabled') >= 0) {
|
||||
nextLinkNavNode.attr('disabled', true);
|
||||
}
|
||||
prevNextNavNode.append(nextLinkNavNode);
|
||||
} else {
|
||||
prevNextNavNode.append('<span class="next-page"></span>');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user