Skip to content

Instantly share code, notes, and snippets.

@basketofsoftkittens
Last active August 29, 2015 14:18
Show Gist options
  • Save basketofsoftkittens/0c022f1b00d51c09dcd2 to your computer and use it in GitHub Desktop.
Save basketofsoftkittens/0c022f1b00d51c09dcd2 to your computer and use it in GitHub Desktop.
javascript:$(function(){function a(a){alert(a)}$(document).on("click",".track-list li",function(t){var r=$(t.currentTarget),n=r.attr("data-id"),c=APP.TrackView.TrackData.byId(n),i=r.find(".track-info");return i.attr("data-active")?!1:a(c&&c.trackLabel?"ID:"+n+"\n LABEL: "+c.trackLabel:"No Track Information Found")})});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment