diff --git a/docs/src/index.html.erb b/docs/src/index.html.erb index 91f59c6..0ccf5b8 100644 --- a/docs/src/index.html.erb +++ b/docs/src/index.html.erb @@ -9,7 +9,7 @@ $('#example-fade').tipsy({fade: true}); $('#example-custom-attribute').tipsy({title: 'id'}); - $('#example-callback').tipsy({title: function() { return this.getAttribute('original-title').toUpperCase(); } }); + $('#example-callback').tipsy({title: function() { return this.getAttribute('data-original-title').toUpperCase(); } }); $('#example-fallback').tipsy({fallback: "Where's my tooltip yo'?" }); $('#example-html').tipsy({html: true }); @@ -132,7 +132,7 @@ an anchor tag's title attribute.

Callback example:
-
$('#example-callback').tipsy({title: function() { return this.getAttribute('original-title').toUpperCase(); } });
+
$('#example-callback').tipsy({title: function() { return this.getAttribute('data-original-title').toUpperCase(); } });

Finally, it is possible to specify a fallback tooltip for any element which does not have any tooltip text:

@@ -195,7 +195,7 @@ an anchor tag's title attribute.

Tipsy tooltips are 'live' - if the source attribute's value changes, the tooltip text will be updated the next time the tooltip is shown. There's one caveat - if you wish to remove the tooltip - by setting the title attribute to an empty string, set the original-title + by setting the title attribute to an empty string, set the data-original-title attribute instead (this only applies if you're using the title attribute).

@@ -204,7 +204,7 @@ an anchor tag's title attribute.

Hover over me | New tooltip text: - +