Skip to content
Snippets Groups Projects
Commit 1d6d4c6a authored by Joshua Walker's avatar Joshua Walker
Browse files

Merge pull request #50 from relldoesphp/4.5-1.8

Add patch for CiviCRM 4.5 forms
parents c7398e8d 796b6110
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,11 @@
* Don't reference by form#id since it changes between payment pages
* (Contribution / Event / etc).
*/
$('#crm-container>form').addClass('stripe-payment-form');
//Patch - remove direct child selector and account for dialog forms
$('#crm-container form').addClass('stripe-payment-form');
if($('#crm-ajax-dialog-1 form').length){
$('#crm-ajax-dialog-1 form').addClass('stripe-payment-form');
}
$('form.stripe-payment-form').unbind('submit');
// Intercept form submission.
$("form.stripe-payment-form").submit(function(event) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment