1(function () { 2 var window = this, 3 $ = window.jQuery, 4 DDC = (window.DDC = (window.DDC || {})); 5 6 $.tools.tooltip.addEffect('zoom', function (callback) { 7 this.getTip() 8 .transform({scale: 0}) 9 .show() 10 .css({ 11 opacity: 0.001, 12 '-moz-transform-origin': '0 0', 13 '-webkit-transform-origin': '0 0', 14 '-o-transform-origin': '0 0' 15 }).animate({ 16 scale: 1, 17 opacity: 0.999 18 }, 'fast', callback); 19 }, function (callback) { 20 this.getTip().animate({ 21 scale: 0, 22 opacity: 0.001 23 }, this.getConf().fadeOutSpeed, function () { 24 $(this).transform({scale: 1}); 25 if ($.isFunction(callback)) { 26 callback.apply(this); 27 $(this).hide(); 28 } 29 }); 30 }); 31 32 DDC.modules.tooltip.refresh = function () { 33 var settings = {}, 34 returnFalse = function () { 35 return false; 36 }; 37 38 $(DDC.modules.tooltip.selector).each(function () { 39 if (!$(this).data('initialized')) { 40 settings = $.extend({ 41 effect: 'zoom', 42 predelay: '100', 43 relative: true, 44 /* 45 * jQuery Tools tooltip internally uses the jQuery API 46 * method isDefaultPrevented to decide whether or not to 47 * show/hide tooltips. jQuery 1.5 apparently changed the way this 48 * method works. And jQuery Tools has not yet been 49 * updated for jQuery 1.5. 50 * 51 * Without the following hack, tooltips are shown and hidden 52 * inconsistently. Thus, we must hack the return 53 * value of these events' event objects' isDefaultPrevented 54 * methods to always return false (which was returned consistently 55 * in previous version of jQuery, but changed in jQuery 1.5 to 56 * be less consistent). 57 * 58 * These overrides may be removed when jQuery Tools tooltip is 59 * officially updated to support jQuery 1.5. 60 * 61 * More information 62 * - the specific issue: http://flowplayer.org/tools/forum/30/58627 63 * - jQuery API isDefaultPrevented(): http://api.jquery.com/event.isDefaultPrevented/ 64 */ 65 onBeforeShow: function (e) { 66 e.isDefaultPrevented = returnFalse; 67 }, 68 onBeforeHide: function (e) { 69 e.isDefaultPrevented = returnFalse; 70 } 71 }, $.getDataAttributes(this)); 72 73 $(this).data('initialized', true).tooltip(settings); 74 } 75 }); 76 }; 77}());
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.