easydigitaldownloads/Easy-Digital-Downloads — pull request #2169 by moveplugins (2014-04-05 00:15:51+00:00)
Title: Make "Remove" from Cart Button work with Ajax

In the "edd_remove_item_url" function, there is a Boolean parameter for $ajax - however, it isn't actually used - neither is it actually necessary.

I have modified the function so it can be used in ajax functions and uses the checkout page by default.

The change involves checking the "DOING_AJAX" constant, and if we are using ajax, we add the checkout page's id to the url used in the "Remove" button.