membership_benefits now just one call as desired for issue #46

* now need to do the same thing for volunteer_benefits
This commit is contained in:
Jonathan Rosenbaum
2017-12-15 05:22:18 +00:00
parent 6baadda5ef
commit f59020a823
4 changed files with 88 additions and 53 deletions
+5 -3
View File
@@ -879,9 +879,11 @@ $(function() {
// Is this a paid member?
// Determine membership benefits of current transaction
$.post("json/transaction.php", { membership_benefits: 1, contact_id: this.value }, function (data) {
membership_obj = $.parseJSON(data);
var contact_id = "contact_id=" + this.value;
$.post("json/transaction.php", { membership_benefits: 1, contact_id: contact_id }, function (data) {
var membership_objs = $.parseJSON(data);
membership_obj = membership_objs[0];
var title = membership_obj.normal_full_name + "\r\n" +
membership_obj.email + "\r\n" +
membership_obj.phone + "\r\n" +