Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ACOA PC GENERATION TOOL -- SHOULD BE FOR JUSTIN ONLY!
- $("a[id*='generate_acoapc_']").click(function(){
- var id = $(this).attr("id").replace("generate_acoapc_", "");
- $.ajax({
- url : '/analytics/api/set_pc/',
- type : 'POST',
- data : {
- 'id' : id,
- 'csrfmiddlewaretoken': 'krYGV622ofKuGEIpu6vEQvMvXdhO1gHvlvSJHYL7gJCYt6mwJe90QnzI4Ulzt5Nn',
- },
- //dataType:'text json',
- success : function(data) {
- //alert('Data: '+data);
- var str = "mkacoapc_" + id;
- //alert(str);
- html = 'AutographCOA - Pre-Certified Online<br/><a href="https://www.autographcoa.com/cert/' + data + '" target="_blank">' + data + '</a>';
- $("span[id="+str+"]").html(html);
- },
- error : function(request,error)
- {
- //alert("Request: "+JSON.stringify(request));
- alert("error setting PC. call hacker.");
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement