Skip to content
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

Merged
merged 2 commits into from
Oct 20, 2016

Conversation

pradpnayak
Copy link
Contributor


@JoeMurray
Copy link
Contributor

I've tested successfully and reviewed code. Ready to merge.

"url": sSource,
"data": aoData,
"success": fnCallback
});
}
});
toggleFinancialSelections('#toggleSelect', 'assign');
Copy link
Member

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');
Copy link
Member

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';
Copy link
Member

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>&nbsp;</td>
{/if}
</tr>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was this missing previously?

Copy link
Contributor Author

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
@pradpnayak
Copy link
Contributor Author

@colemanw thanks for the alternate solution for async. I have updated the PR with the changes. Could you please review?

@colemanw colemanw merged commit ebb857a into civicrm:master Oct 20, 2016
@pradpnayak pradpnayak deleted the CRM-19485 branch February 22, 2017 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants