jQuery im noConflict-Modus betreiben

This commit is contained in:
Carsten Götzinger 2015-06-29 09:01:24 +02:00
parent 5602f44935
commit 72937119e3
2 changed files with 3 additions and 3 deletions

View File

@ -27,8 +27,8 @@ function doWithMootols() {
function doWithJQuery() {
jQuery('a[name^="aeo-obfuscated-"]').each(function(i, el) {
if (!$(el).hasClass('aeo-with-title')) {
$(el).attr('title',tooltip_js_on);
if (!jQuery(el).hasClass('aeo-with-title')) {
jQuery(el).attr('title',tooltip_js_on);
}
aeo_prepare_link(el);
}

View File

@ -2,7 +2,7 @@
var map;onReadyAeo(function(){aeo_dom_ready();});function aeo_dom_ready(){if(window.MooTools){doWithMootols();}else if(window.jQuery){doWithJQuery();}}
function doWithMootols(){$$('a').filter(function(el){return el.getAttribute('name')!=null&&el.getAttribute('name').match('^aeo-obfuscated-')=='aeo-obfuscated-'}).each(function(el){if(!el.hasClass('aeo-with-title')){el.setAttribute('title',tooltip_js_on);}
aeo_prepare_link(el);});}
function doWithJQuery(){jQuery('a[name^="aeo-obfuscated-"]').each(function(i,el){if(!$(el).hasClass('aeo-with-title')){$(el).attr('title',tooltip_js_on);}
function doWithJQuery(){jQuery('a[name^="aeo-obfuscated-"]').each(function(i,el){if(!jQuery(el).hasClass('aeo-with-title')){jQuery(el).attr('title',tooltip_js_on);}
aeo_prepare_link(el);});}
function aeo_prepare_link(el){el.setAttribute('href','javascript:aeo_link_decode(\''+el.getAttribute('href')+'\');');}
function rot13init(){this.map=new Array();var s="abcdefghijklmnopqrstuvwxyz";for(var i=0;i<s.length;i++)