Skip to content

Instantly share code, notes, and snippets.

@astrotars
Created December 4, 2012 22:31
Show Gist options
  • Select an option

  • Save astrotars/4209594 to your computer and use it in GitHub Desktop.

Select an option

Save astrotars/4209594 to your computer and use it in GitHub Desktop.
success: function() {
clearInterval(this.options.timerModel.i);
$(this.el).html(create(
['.complete', [
['h3', 'thanks! your order has been placed.'],
['p', [
'Thank you for your purchase. Please click ',
['span.color_link_2.return_post_purchase.btn', 'here'],
' to continue shopping.'
]],
['.panel.color_bg_2', [
['h4', 'tell your friends about your purchase!'], // this should mention earing cash
['.btn#share_post_order.color_bg_link_2', 'share']
]]
]]
));
$(this.el).parent().parent().find('#timer').hide();
// send transaction and item data to the google analytics server
if (!this.gaq) {
_gaq.push(['_trackTrans']);
this.gaq = true;
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment