Attaches qTip2 library.

This commit is contained in:
2021-02-18 09:58:23 +00:00
parent f1c8ff03f6
commit 01c01ed99c
4 changed files with 44 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
(function ($, Drupal, drupalSettings) {
'use strict';
Drupal.behaviors.cdesai_tff_tooltip = {
attach: function (context, settings) {
$('body', context).once('cdesai_tff_tooltip').each(function () {
$('[data-tooltip!=""]').qtip({
content: {
attr: 'data-tooltip'
}
});
});
}
};
})(jQuery, Drupal, drupalSettings);