Template:Ways to Give/PayPalSelect: Difference between revisions

Content deleted Content added
wrap in window load
wrap in mw.loader.using
Line 12:
<script>
window.addEventListener('load', function() {
 
// Add tracking info to links
$mw.loader.using('#currency-list a[')mediaWiki.attr('hrefUri'], function(i, val) {
 
var uri = new mw.Uri(val);
$('#currency-list a').attr('href', function(i, val) {
uri.extend({
utm_medium:var 'Waystogive',uri = new mw.Uri(val);
utm_campaign: 'C11_Waystogive',uri.extend({
utm_source utm_medium: 'Waystogive',
utm_campaign: 'C11_Waystogive',
utm_source: 'Waystogive'
var uri = new mw.Uri(val});
return uri.toString();
});
 
return uri.toString();
});
 
});
</script>