http://twitter.github.com/bootstrap/ ノーマルは $(function(){ $('.popup').popover() }); という感じ。トリガーをマニュアルにしたい。toggle()を使いたい。 $(function(){ $('.popup').popover({ trigger: 'manual' }).click(function(e){ $(this).popover('toggle'); e.preventDefault(); }); }); という感じにする。これをさらに「popoverを閉じるときに、どこをクリックしても閉じれる」ようにする。 var isVisible = false; var clickedAway = false; $(function(){ $('.popup').popover({ trigger: 'man