mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-08 21:01:37 -04:00
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:
+5
-3
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user