From: Patrick Uiterwijk Date: Mon, 13 Apr 2015 13:26:48 +0000 (+0200) Subject: Fix bootstrap tooltip error X-Git-Tag: v0.6.0~3 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=c4c121e57516ffb70b980ea1fbafe1e6f8611c3f Fix bootstrap tooltip error This was caused by running the tooltip() function against the document object, while it should be ran against the objects that use a tooltip. This new method is the suggested way to enable tooltips per http://getbootstrap.com/javascript/#tooltips-examples. https://fedorahosted.org/ipsilon/ticket/98 Signed-off-by: Patrick Uiterwijk Reviewed-by: Simo Sorce --- diff --git a/templates/master-admin.html b/templates/master-admin.html index e838111..8987df9 100644 --- a/templates/master-admin.html +++ b/templates/master-admin.html @@ -14,9 +14,9 @@ $( document ).ready( function() { history.replaceState({} , document.title, "{{ newurl }}"); + $('[data-toggle="tooltip"]').tooltip(); } ); - $( document ).tooltip(); {% endif %} {% block scripts %}