Fix bootstrap tooltip error
authorPatrick Uiterwijk <puiterwijk@redhat.com>
Mon, 13 Apr 2015 13:26:48 +0000 (15:26 +0200)
committerSimo Sorce <simo@redhat.com>
Mon, 13 Apr 2015 13:43:28 +0000 (09:43 -0400)
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 <puiterwijk@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
templates/master-admin.html

index e838111..8987df9 100644 (file)
@@ -14,9 +14,9 @@
         $( document ).ready(
             function() {
                 history.replaceState({} , document.title, "{{ newurl }}");
+                $('[data-toggle="tooltip"]').tooltip();
             }
         );
-        $( document ).tooltip();
     </script>
     {% endif %}
     {% block scripts %}