vendor/assets/javascripts/base/_tooltip.js in active_frontend-14.0.1 vs vendor/assets/javascripts/base/_tooltip.js in active_frontend-14.0.2
- old
+ new
@@ -514,12 +514,18 @@
};
// TOOLTIP DATA-API
// ================
- $(document).on('hover.bs.tooltip.data-api', '[data-toggle="tooltip"]', function (e) {
- var $this = $(this);
- if ($this.data('tooltip')) return;
- Plugin.call($this, $this.data());
- });
+ $(document).on('ready.bs.tooltip.data-api', function () {
+ $('[data-toggle="tooltip"]').each(function () {
+ var $this = $(this);
+ if ($this.data('tooltip')) return;
+ Plugin.call($this, $this.data());
+ });
+ }).on('hover.bs.tooltip.data-api', '[data-toggle="tooltip"]', function (e) {
+ var $this = $(this);
+ if ($this.data('tooltip')) return;
+ Plugin.call($this, $this.data());
+ });
}(jQuery);