Skip to content

Commit

Permalink
Modify trigger. Closes woocommerce#2324, woocommerce#2323
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Feb 1, 2013
1 parent d839692 commit fc84aac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/frontend/add-to-cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jQuery(document).ready(function($) {
};

// Trigger event
$('body').trigger('adding_to_cart');
$('body').trigger( 'adding_to_cart', [ $thisbutton, data ] );

// Ajax action
$.post( woocommerce_params.ajax_url, data, function( response ) {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/frontend/add-to-cart.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc84aac

Please sign in to comment.