Index: branches/fundraising/OWA/DonationInterface/payflowpro_gateway/forms/Form.php |
— | — | @@ -665,10 +665,10 @@ |
666 | 666 | protected function loadOwaJs() { |
667 | 667 | global $wgOut, $wgScriptPath; |
668 | 668 | $wgOut->addHeadItem('owa_tracker_analytics', '<script type="text/javascript" src="http://analytics.tesla.usability.wikimedia.org/wiki/d/extensions/owa/modules/base/js/owa.tracker-combined-min.js"></script>'); |
669 | | - $wgOut->addHeadItem('owa_get_info', '<script type="text/javascript" src="http://analytics.tesla.usability.wikimedia.org/owa_get_info.js"></script>'); |
670 | | - /*$wgOut->addHeadItem( 'owa_get_info', '<script type="text/javascript" src="' . |
| 669 | + |
| 670 | + $wgOut->addHeadItem( 'owa_get_info', '<script type="text/javascript" src="' . |
671 | 671 | $wgScriptPath . |
672 | | - '/extensions/DonationInterface/payflowpro_gateway/owa_get_info.js?284"></script>' );*/ |
| 672 | + '/extensions/DonationInterface/payflowpro_gateway/owa_get_info.js?284"></script>' ); |
673 | 673 | $wgOut->addHeadItem( 'owa_tracker', '<script type="text/javascript" src="' . |
674 | 674 | $wgScriptPath . |
675 | 675 | '/extensions/DonationInterface/payflowpro_gateway/owa.tracker-combined-min.js?284"></script>' ); |
Index: branches/fundraising/OWA/DonationInterface/payflowpro_gateway/owa_get_info.js |
— | — | @@ -1,18 +1,7 @@ |
2 | 2 | var get_owa_information = function() { |
3 | | -if(OWA.util.readCookie){ |
4 | | - var owa_s_val = OWA.util.readCookie("owa_s"); |
5 | | - var owa_s_ident = "sid%3D%3E"; |
6 | | - var owaS_start_index = owa_s_val.indexOf(owa_s_ident); |
7 | | - //NOTE: This only works as long as sid is the last param in the OWA cookie |
8 | | - if(owaS_start_index >= 0){ |
9 | | - var owaSessionID = owa_s_val.substr(owaS_start_index + owa_s_ident.length); |
10 | | - if(document.getElementById("owa_session") && |
11 | | - document.getElementById("owa_ref")){ |
12 | | - document.getElementById("owa_session").value = owaSessionID; |
13 | | - document.getElementById("owa_ref").value = encode(window.location); |
14 | | - } |
15 | | - } |
| 3 | +if(OWA.util.getState){ |
| 4 | + jQuery("input[name=owa_session]").val( OWA.util.getState('s', 'sid') ); |
| 5 | + jQuery("input[name=owa_ref]").val( escape(window.location) ); |
16 | 6 | } |
17 | 7 | }; |
18 | | - |
19 | 8 | if(jQuery){jQuery(document).ready(get_owa_information);} |