-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ready-for-core-team-review]CRM-19485, Fixed selector issue on Batch Transaction form #9211
Conversation
I've tested successfully and reviewed code. Ready to merge. |
"url": sSource, | ||
"data": aoData, | ||
"success": fnCallback | ||
}); | ||
} | ||
}); | ||
toggleFinancialSelections('#toggleSelect', 'assign'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disabling async in ajax calls is deprecated.
Add this call to your fnCallback instead and you don't need to do so. Like this:
"success": function() {
toggleFinancialSelections('#toggleSelect', 'assign');
fnCallback();
}
"success": fnCallback | ||
}); | ||
} | ||
}); | ||
toggleFinancialSelections('#toggleSelects', 'remove'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
@@ -172,6 +163,19 @@ function enableActions( type ) { | |||
} | |||
} | |||
|
|||
function toggleFinancialSelections(toggleID, toggleClass) { | |||
mark = 'x'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing var
keyword
@@ -52,6 +52,7 @@ | |||
{else} | |||
<td> </td> | |||
{/if} | |||
</tr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this missing previously?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was missing
---------------------------------------- * CRM-19485: Selector issue on Batch trxn assignment page https://issues.civicrm.org/jira/browse/CRM-19485
…ion for toggling in success ---------------------------------------- * CRM-19485: Selector issue on Batch trxn assignment page https://issues.civicrm.org/jira/browse/CRM-19485
@colemanw thanks for the alternate solution for async. I have updated the PR with the changes. Could you please review? |
https://issues.civicrm.org/jira/browse/CRM-19485