Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created September 29, 2011 17:45
Show Gist options
  • Save andymckay/1251390 to your computer and use it in GitHub Desktop.
Save andymckay/1251390 to your computer and use it in GitHub Desktop.
diff --git a/media/js/zamboni/contributions.js b/media/js/zamboni/contributions.js
index ca57ee4..b491dff 100644
--- a/media/js/zamboni/contributions.js
+++ b/media/js/zamboni/contributions.js
@@ -33,10 +33,10 @@ $(document).ready(function() {
top_dgFlow = top.dgFlow || (top.opener && top.opener.top.dgFlow);
if (top_dgFlow !== null) {
var thanks_url = $('#paypal-thanks').attr('href');
- top_dgFlow.closeFlow();
if(thanks_url) {
- modalFromURL(thanks_url);
+ top.modalFromURL(thanks_url);
}
+ top_dgFlow.closeFlow();
if (top !== null) {
top.close();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment