Skip to content

Instantly share code, notes, and snippets.

@cdwills
Created June 20, 2011 21:56
Show Gist options
  • Save cdwills/1036695 to your computer and use it in GitHub Desktop.
Save cdwills/1036695 to your computer and use it in GitHub Desktop.

Revisions

  1. cdwills revised this gist Jun 20, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion z_embed.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    if (window.ticket_id != undefined) {
    recorder.addCustomData("Ticket", window.ticket_id);
    } else if (window.location.pathname.split('/')[1] === 'requests' && window.ticket_id === undefined){
    } else if (window.location.pathname.match(/\/requests\/\d+$/) && window.ticket_id === undefined){
    recorder.addCustomData("Ticket", window.location.pathname.split('/')[2];
    }
  2. cdwills revised this gist Jun 20, 2011. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions z_embed.js
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    if (window.ticket_id != undefined) {
    recorder.addCustomData("Ticket", window.ticket_id);
    } else if (window.location.pathname.split('/')[1] === 'requests' && window.ticket_id === undefined){
    recorder.addCustomData("Ticket", window.location.pathname.split('/')[2];
    }
    recorder.addCustomData("Ticket", window.ticket_id);
    } else if (window.location.pathname.split('/')[1] === 'requests' && window.ticket_id === undefined){
    recorder.addCustomData("Ticket", window.location.pathname.split('/')[2];
    }
  3. cdwills created this gist Jun 20, 2011.
    5 changes: 5 additions & 0 deletions z_embed.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    if (window.ticket_id != undefined) {
    recorder.addCustomData("Ticket", window.ticket_id);
    } else if (window.location.pathname.split('/')[1] === 'requests' && window.ticket_id === undefined){
    recorder.addCustomData("Ticket", window.location.pathname.split('/')[2];
    }