FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

Fix: init tooltips from the app start #1343

Closed ylecuyer closed 4 years ago

ylecuyer commented 4 years ago

Before Base on @campersau comment here : https://github.com/FredrikNoren/ungit/pull/1340#issuecomment-622092861

Tooltip are not loaded until a repo is opened

80755823-c7cd4b80-8b31-11ea-970d-9e9c7e892f68

Fix

Instead of relying on some hand made event to init tooltips, this PR uses the event-delegation method provided by bootstrap tooltip (based on jquery.on) to init tooltips on existing elements and new elements.

https://getbootstrap.com/docs/4.0/components/tooltips/

Screenshot_2020-05-01_23-36-05