diff --git a/js/shop.js b/js/shop.js index e0d6fde..336d5cc 100644 --- a/js/shop.js +++ b/js/shop.js @@ -110,13 +110,13 @@ $(function(){ if (obj.contact_id) { - $("#volunteer_hours_" + obj.contact_id).html("Summary"). + $(".volunteer_hours_" + obj.contact_id).html("Summary"). parent().css({backgroundColor: "#19a0cc", textAlign: "center", cursor: "cell"}). prop("title",title).css({textAlign: "center"}); } else { - $("#volunteer_hours_" + id).parent().css({cursor: "not-allowed"}); + $(".volunteer_hours_" + id).parent().css({cursor: "not-allowed"}); } @@ -162,12 +162,12 @@ $(function(){ // expired membership if (d >= expiration_date) { - $("#paid_membership_" + membership_obj.contact_id).html("Expired"). + $(".paid_membership_" + membership_obj.contact_id).html("Expired"). parent().css({backgroundColor: "red", textAlign: "center", cursor: "cell"}).prop("title",title); // paid membership } else if (d < expiration_date) { - $("#paid_membership_" + membership_obj.contact_id).html("Current"). + $(".paid_membership_" + membership_obj.contact_id).html("Current"). parent().css({backgroundColor: "green", textAlign: "center", cursor: "cell"}).prop("title",title).css({textAlign: "center"}); } // paid membership @@ -175,7 +175,7 @@ $(function(){ // never been a member } else { - $("#paid_membership_" + id).parent().css({cursor: "not-allowed"}); + $(".paid_membership_" + id).parent().css({cursor: "not-allowed"}); } // never been a member diff --git a/shop_log.php b/shop_log.php index 1f359a1..8b5fee1 100644 --- a/shop_log.php +++ b/shop_log.php @@ -250,8 +250,8 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit")) {   edit";} else {echo " ";} ?> - - + +