Changes id to class for more than one row with same contact_id.

This commit is contained in:
Jonathan Rosenbaum
2017-09-17 01:29:02 +00:00
parent c356cb9aaf
commit d98c033348
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -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