allow kktix redirect with tracker url, ex: fbid
parent
861996afc3
commit
0f35ce7ca1
|
@ -6,12 +6,15 @@ $("footer").remove();
|
|||
function kktix_event_redirect()
|
||||
{
|
||||
const currentUrl = window.location.href;
|
||||
const event_code = currentUrl.split('/')[4];
|
||||
let event_code = currentUrl.split('/')[4];
|
||||
if(event_code.indexOf('?') > -1) {
|
||||
event_code = event_code.split('?')[0];
|
||||
}
|
||||
//console.log(currentUrl);
|
||||
//console.log(event_code);
|
||||
if(event_code){
|
||||
let button_count = $("div.tickets > a.btn-point").length;
|
||||
console.log("length:"+button_count);
|
||||
//console.log("length:"+button_count);
|
||||
if (button_count == 1) {
|
||||
let new_url = "https://kktix.com/events/"+ event_code +"/registrations/new";
|
||||
location.href=new_url;
|
||||
|
|
|
@ -380,5 +380,5 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"version": "1.0.7"
|
||||
"version": "1.0.8"
|
||||
}
|
Loading…
Reference in New Issue