Fix browsable API tooltips that linger.

This commit is contained in:
Chris Church 2016-03-29 14:26:43 -04:00
parent d51f56af9c
commit 615f7b50dc

View File

@ -43,11 +43,13 @@ $(function() {
$('.description').addClass('prettyprint').parent().css('float', 'none');
$('.hidden a.hide-description').prependTo('.description');
$('a.hide-description').click(function() {
$(this).tooltip('hide');
$('.description').slideUp('fast');
return false;
});
$('.hidden a.toggle-description').appendTo('.page-header h1');
$('a.toggle-description').click(function() {
$(this).tooltip('hide');
$('.description').slideToggle('fast');
return false;
});
@ -68,6 +70,7 @@ $(function() {
});
$('a.resize').click(function() {
$(this).tooltip('hide');
if ($(this).find('span.glyphicon-resize-full').size()) {
$(this).find('span.glyphicon').addClass('glyphicon-resize-small').removeClass('glyphicon-resize-full');
$('.container').addClass('container-fluid').removeClass('container');