mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
readme
This commit is contained in:
@@ -256,7 +256,7 @@ $(function () {
|
||||
} else {
|
||||
flipContents("hide");
|
||||
$("body").trigger("queryReady");
|
||||
$('#search-results>.search-list').text('Search Results for "' + query + '"');
|
||||
$('#search-results>.search-list>span').text('"' + query + '"');
|
||||
}
|
||||
}).off("keydown");
|
||||
});
|
||||
@@ -301,12 +301,17 @@ $(function () {
|
||||
|
||||
function handleSearchResults(hits) {
|
||||
var numPerPage = 10;
|
||||
$('#pagination').empty();
|
||||
$('#pagination').removeData("twbs-pagination");
|
||||
var pagination = $('#pagination');
|
||||
pagination.empty();
|
||||
pagination.removeData("twbs-pagination");
|
||||
if (hits.length === 0) {
|
||||
$('#search-results>.sr-items').html('<p>No results found</p>');
|
||||
} else {
|
||||
$('#pagination').twbsPagination({
|
||||
} else {
|
||||
pagination.twbsPagination({
|
||||
first: pagination.data('first'),
|
||||
prev: pagination.data('prev'),
|
||||
next: pagination.data('next'),
|
||||
last: pagination.data('last'),
|
||||
totalPages: Math.ceil(hits.length / numPerPage),
|
||||
visiblePages: 5,
|
||||
onPageClick: function (event, page) {
|
||||
@@ -593,10 +598,12 @@ $(function () {
|
||||
//Setup Affix
|
||||
function renderAffix() {
|
||||
var hierarchy = getHierarchy();
|
||||
if (hierarchy && hierarchy.length > 0) {
|
||||
var html = '<h5 class="title">In This Article</h5>'
|
||||
html += util.formList(hierarchy, ['nav', 'bs-docs-sidenav']);
|
||||
$("#affix").empty().append(html);
|
||||
if (!hierarchy || hierarchy.length <= 0) {
|
||||
$("#affix").hide();
|
||||
}
|
||||
else {
|
||||
var html = util.formList(hierarchy, ['nav', 'bs-docs-sidenav']);
|
||||
$("#affix>div").empty().append(html);
|
||||
if ($('footer').is(':visible')) {
|
||||
$(".sideaffix").css("bottom", "70px");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user