1var jevjq; 2function checkJQ() { 3 //alert(typeof $); 4 if (window.jQuery && jQuery.fn) { 5 jevjq = jQuery.noConflict(); 6 } 7} 8checkJQ(); 9 10// workaround for tooltips and popovers failing when MooTools is enabled with Bootstrap 3 11// See http://www.mintjoomla.com/support/community-forum/user-item/1833-braza/48-cobalt-8/2429.html?start=20 12jQuery(document).on('ready', function() { 13 // Will be true if bootstrap 3 is loaded, false if bootstrap 2 or no bootstrap 14 var bootstrap3_enabled = (typeof jQuery().emulateTransitionEnd == 'function'); 15 16 if(window.MooTools && bootstrap3_enabled) { 17 /** 18 * Workaround based on the code written by JoomlaArt 19 * 20 * @copyright Copyright (C) 2004-2013 JoomlArt.com. All Rights Reserved. 21 * @license GNU General Public License version 2 or later; see LICENSE.txt 22 * @authors JoomlArt, JoomlaBamboo, (contribute to this project at github 23 * & Google group to become co-author) 24 *------------------------------------------------------------------------------ 25 */ 26 27 var mtHide = Element.prototype.hide, 28 mtShow = Element.prototype.show, 29 mtSlide = Element.prototype.slide; 30 31 Element.implement({ 32 show: function(args){ 33 if(arguments.callee && 34 arguments.callee.caller && 35 arguments.callee.caller.toString().indexOf('isPropagationStopped') !== -1){ //jquery mark 36 return this; 37 } 38 return jQuery.isFunction(mtShow) && mtShow.apply(this, args); 39 }, 40 41 hide: function(){ 42 if(arguments.callee && 43 arguments.callee.caller && 44 arguments.callee.caller.toString().indexOf('isPropagationStopped') !== -1){ //jquery mark 45 return this; 46 } 47 return jQuery.isFunction(mtHide) && mtHide.apply(this, arguments); 48 }, 49 50 slide: function(args){ 51 if(arguments.callee && 52 arguments.callee.caller && 53 arguments.callee.caller.toString().indexOf('isPropagationStopped') !== -1){ //jquery mark 54 return this; 55 } 56 return jQuery.isFunction(mtSlide) && mtSlide.apply(this, args); 57 } 58 }); 59 } 60});
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.