Index: trunk/extensions/DonationInterface/payflowpro_gateway/owa_get_info.js |
— | — | @@ -0,0 +1,18 @@ |
| 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_id") && |
| 11 | + document.getElementById("owa_pageref") ){ ){ |
| 12 | + document.getElementById("owa_session_id").value = owaSessionID; |
| 13 | + document.getElementById("owa_pageref").value = encode(window.location); |
| 14 | + } |
| 15 | + } |
| 16 | +} |
| 17 | +}; |
| 18 | + |
| 19 | +if(jQuery){jQuery(document).ready(get_owa_information);} |
Property changes on: trunk/extensions/DonationInterface/payflowpro_gateway/owa_get_info.js |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 20 | + native |