Index: trunk/extensions/CustomUserSignup/modules/AccountCreationUserBucket.js |
— | — | @@ -1,4 +1,3 @@ |
2 | | - |
3 | 2 | //checks |
4 | 3 | if(typeof(MW) == "undefined"){ MW={};} |
5 | 4 | if(!MW.activeCampaigns){ MW.activeCampaigns ={}; } |
— | — | @@ -31,16 +30,32 @@ |
32 | 31 | |
33 | 32 | "ACP1": function(){ |
34 | 33 | //change to NiceMsg1 campaign |
35 | | - $j("#pt-anonlogin a").attr("href", $j("#pt-anonlogin a").attr("href") + "&campaign=ACP1" ); |
| 34 | + $j("#pt-anonlogin a").each(function(){ |
| 35 | + $j(this).attr("href", $j(this).attr("href") + "&campaign=ACP1" ); |
| 36 | + }); |
| 37 | + $j("#pt-login a").each(function(){ |
| 38 | + $j(this).attr("href", $j(this).attr("href") + "&campaign=ACP1" ); |
| 39 | + }); |
| 40 | + |
36 | 41 | }, |
37 | 42 | "ACP2": function(){ |
38 | 43 | //change to NiceMsg2 campaign |
39 | | - $j("#pt-anonlogin a").attr("href", $j("#pt-anonlogin a").attr("href") + "&campaign=ACP2" ); |
| 44 | + $j("#pt-anonlogin a").each(function(){ |
| 45 | + $j(this).attr("href", $j(this).attr("href") + "&campaign=ACP2" ); |
| 46 | + }); |
| 47 | + $j("#pt-login a").each(function(){ |
| 48 | + $j(this).attr("href", $j(this).attr("href") + "&campaign=ACP2" ); |
| 49 | + }); |
40 | 50 | }, |
41 | 51 | |
42 | 52 | "ACP3": function(){ |
43 | 53 | //change to NiceMsg2 campaign |
44 | | - $j("#pt-anonlogin a").attr("href", $j("#pt-anonlogin a").attr("href") + "&campaign=ACP3" ); |
| 54 | + $j("#pt-anonlogin a").each(function(){ |
| 55 | + $j(this).attr("href", $j(this).attr("href") + "&campaign=ACP3" ); |
| 56 | + }); |
| 57 | + $j("#pt-login a").each(function(){ |
| 58 | + $j(this).attr("href", $j(this).attr("href") + "&campaign=ACP3" ); |
| 59 | + }); |
45 | 60 | }, |
46 | 61 | |
47 | 62 | // "allActive" is reserved. |