Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: bump jQuery to v3.6.0 #1397

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 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
44 changes: 23 additions & 21 deletions templates/default/fulldoc/html/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,44 +7,46 @@ try { sessionStorage = window.sessionStorage; } catch (e) { }
function createSourceLinks() {
$('.method_details_list .source_code').
before("<span class='showSource'>[<a href='#' class='toggleSource'>View source</a>]</span>");
$('.toggleSource').toggle(function() {
trivikr marked this conversation as resolved.
Show resolved Hide resolved
$(this).parent().nextAll('.source_code').slideDown(100);
$(this).text("Hide source");
},
function() {
$('.toggleSource').click(function() {
if ($(this).text() === "View source") {
$(this).parent().nextAll('.source_code').slideDown(100);
$(this).text("Hide source");
} else {
$(this).parent().nextAll('.source_code').slideUp(100);
$(this).text("View source");
}
});
}

function createDefineLinks() {
var tHeight = 0;
$('.defines').after(" <a href='#' class='toggleDefines'>more...</a>");
$('.toggleDefines').toggle(function() {
$('.toggleDefines').click(function() {
if ($(this).text() === "more...") {
tHeight = $(this).parent().prev().height();
$(this).prev().css('display', 'inline');
$(this).parent().prev().height($(this).parent().height());
$(this).text("(less)");
},
function() {
} else {
$(this).prev().hide();
$(this).parent().prev().height(tHeight);
$(this).text("more...");
}
});
}

function createFullTreeLinks() {
var tHeight = 0;
$('.inheritanceTree').toggle(function() {
$('.inheritanceTree').click(function() {
if($(this).text() === "show all") {
tHeight = $(this).parent().prev().height();
$(this).parent().toggleClass('showAll');
$(this).text("(hide)");
$(this).parent().prev().height($(this).parent().height());
},
function() {
$(this).parent().toggleClass('showAll');
} else {
$(this).parent().prev().height(tHeight);
$(this).text("show all");
}
$(this).parent().toggleClass('showAll');
});
}

Expand Down Expand Up @@ -216,14 +218,14 @@ function generateTOC() {
html = '<div id="toc"><p class="title hide_toc"><a href="#"><strong>Table of Contents</strong></a></p></div>';
$('#content').prepend(html);
$('#toc').append(_toc);
$('#toc .hide_toc').toggle(function() {
$('#toc .top').slideUp('fast');
$('#toc').toggleClass('hidden');
$('#toc .title small').toggle();
}, function() {
$('#toc .top').slideDown('fast');
$('#toc').toggleClass('hidden');
$('#toc .title small').toggle();
$('#toc .title.hide_toc').click(function() {
if ($(this).parent().hasClass('hidden')) {
$(this).next().slideDown('fast');
} else {
$(this).next().slideUp('fast');
}
$(this).parent().toggleClass('hidden');
$(this).find('small').toggle();
});
}

Expand Down
Loading