Docs: Fix search tooltip not hiding on menu close

This commit is contained in:
Rob Garrison 2015-12-03 21:26:19 -06:00
parent d196092339
commit f6012b4e76

View File

@ -144,6 +144,12 @@ jQuery(function($){
index = $results.index(this);
updateStatus();
});
$('#main-nav-check').on('change', function(){
var isChecked = this.checked;
setTimeout(function(){
$status.tipsy( isChecked ? 'show' : 'hide' );
}, 250);
});
$('.tooltip-bottom').tipsy({ gravity: 'n' });
$('.tooltip-top').tipsy({ gravity: 's' });