1(function($) { 2 if (typeof tooltip == 'function') { 3 $('.bs-tooltip').tooltip(); 4 } 5})(jQuery); 6 7;/*})'"*/ 8;/*})'"*/ 9(function($) { 10 if (typeof popover == 'function') { 11 $("[data-toggle=popover]") 12 .on('click', function(e) {e.preventDefault(); return TRUE;}) 13 .popover() 14 } 15})(jQuery); 16 17;/*})'"*/ 18;/*})'"*/ 19(function ($) { 20 Drupal.behaviors.qtip = { 21 attach: function (context, settings) { 22 $(function () { 23 var instances = $.parseJSON(settings.instances); 24 var debug = $.parseJSON(settings.qtipDebug); 25 26 $('.qtip-link:not(.qtip-processed)', context).each(function() { // Call .each() so we can access $(this) in the settings/config 27 // Check for a sibling .qtip-tooltip containing the tooltip information, otherwise (for forms) 28 // go to the element's parent and look for .qtip-tooltip container as a sibling of the parent 29 if ($(this, context).next('.qtip-tooltip').length) { 30 var tooltipElement = $(this).next('.qtip-tooltip'); 31 } 32 else { 33 var tooltipElement = $(this).parent().siblings('.qtip-tooltip'); 34 } 35 var tooltip = tooltipElement; 36 37 if (!debug.leaveElement) { 38 // Remove the tooltip element to keep the DOM clean 39 tooltipElement.remove(); 40 } 41 42 var text = tooltip.html(); 43 var title = (tooltip.data('qtip-title') != undefined) ? tooltip.data('qtip-title') + '' : ''; // Concatenate an empty string to make sure that the value being passed as the title is a string, otherwise it will not display 44 var instance = (tooltip.data('qtip-instance') != undefined) ? tooltip.data('qtip-instance') : ''; 45 var settings = (instances[instance] != undefined) ? instances[instance] : ''; 46 47 if (settings) { 48 $(this).qtip(settings); 49 $(this).qtip('option', 'content.text', text); 50 if (title) { 51 $(this).qtip('option', 'content.title', title); 52 } 53 } 54 // If no settings have been passed through, we still want to display a tooltip 55 else { 56 $(this).qtip({ 57 content: { 58 text: text, 59 title: title, 60 } 61 }); 62 } 63 64 // Add instance class to the container to aid in styling 65 $(this).addClass('qtip-instance-' + instance); 66 67 // Add processed class to not process again on AJAX calls. 68 $(this).addClass('qtip-processed'); 69 }); 70 }); 71 } 72 }; 73})(jQuery); 74 75;/*})'"*/ 76;/*})'"*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.