mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2025-02-23 01:03:23 -05:00
Improves the update interests css a little bit.
This commit is contained in:
parent
6846165297
commit
d3ed149289
22
js/shop.js
22
js/shop.js
@ -116,19 +116,23 @@ $(function(){
|
|||||||
|
|
||||||
if (volunteer_with_redeemed_hours_at_zero !== 0) {
|
if (volunteer_with_redeemed_hours_at_zero !== 0) {
|
||||||
$(".volunteer_hours_" + obj.contact_id).
|
$(".volunteer_hours_" + obj.contact_id).
|
||||||
html("Summary | <span><a href='./contact_add_edit_select.php?contact_id=" +
|
html("Summary | <span class='update_interests'><a href='./contact_add_edit_select.php?contact_id=" +
|
||||||
obj.contact_id +
|
obj.contact_id +
|
||||||
"'>Update Interests</a></span>").
|
"'>Update Interests</a></span>").
|
||||||
parent().css({backgroundColor: "#19a0cc", textAlign: "center", cursor: "cell"}).
|
parent().css({backgroundColor: "#19a0cc", textAlign: "center", cursor: "cell"}).
|
||||||
prop("title",title).css({textAlign: "center"});
|
prop("title",title).css({textAlign: "center"});
|
||||||
|
|
||||||
|
$('.update_interests a').css({color: "#1b691e", textDecoration: "none", cursor: "crosshair"});
|
||||||
} else {
|
} else {
|
||||||
$(".volunteer_hours_" + obj.contact_id).
|
$(".volunteer_hours_" + obj.contact_id).
|
||||||
html("Summary | <span><a href='./contact_add_edit_select.php?contact_id=" +
|
html("Summary | <span class='update_interests'><a href='./contact_add_edit_select.php?contact_id=" +
|
||||||
obj.contact_id +
|
obj.contact_id +
|
||||||
"'>Update Interests</a></span>").
|
"'>Update Interests</a></span>").
|
||||||
parent().css({backgroundColor: "rgb(216, 198, 39)", textAlign: "center", cursor: "cell"}).
|
parent().css({backgroundColor: "rgb(216, 198, 39)", textAlign: "center", cursor: "cell"}).
|
||||||
prop("title",title).css({textAlign: "center"});
|
prop("title",title).css({textAlign: "center"});
|
||||||
|
|
||||||
|
$('.update_interests a').css({color: "#1b691e", textDecoration: "none", cursor: "crosshair"});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -137,12 +141,14 @@ $(function(){
|
|||||||
"Volunteer Hours for last 365 days: None" + "\r\n";
|
"Volunteer Hours for last 365 days: None" + "\r\n";
|
||||||
|
|
||||||
$(".volunteer_hours_" + obj.contact_id).
|
$(".volunteer_hours_" + obj.contact_id).
|
||||||
html("<a href='./contact_add_edit_select.php?contact_id=" +
|
html("<span class='update_interests'><a href='./contact_add_edit_select.php?contact_id=" +
|
||||||
obj.contact_id +
|
obj.contact_id +
|
||||||
"'>Update Interests</a>").
|
"'>Update Interests</a></span>").
|
||||||
parent().css({backgroundColor: "rgb(190, 199, 204)", textAlign: "center", cursor: "cell"}).
|
parent().css({backgroundColor: "rgb(190, 199, 204)", textAlign: "center", cursor: "cell"}).
|
||||||
prop("title",title).css({textAlign: "center"});
|
prop("title",title).css({textAlign: "center"});
|
||||||
|
|
||||||
|
$('.update_interests a').css({color: "#1b691e", textDecoration: "none", cursor: "crosshair"});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@ -155,12 +161,14 @@ $(function(){
|
|||||||
"Volunteer Hours for last 365 days: None" + "\r\n";
|
"Volunteer Hours for last 365 days: None" + "\r\n";
|
||||||
|
|
||||||
$(".volunteer_hours_" + id).
|
$(".volunteer_hours_" + id).
|
||||||
html("<a href='./contact_add_edit_select.php?contact_id=" +
|
html("<span class='update_interests'><a href='./contact_add_edit_select.php?contact_id=" +
|
||||||
id +
|
id +
|
||||||
"'>Update Interests</a>").
|
"'>Update Interests</a></span>").
|
||||||
parent().css({backgroundColor: "rgb(190, 199, 204)", textAlign: "center", cursor: "cell"}).
|
parent().css({backgroundColor: "rgb(190, 199, 204)", textAlign: "center", cursor: "cell"}).
|
||||||
prop("title",title).css({textAlign: "center"});
|
prop("title",title).css({textAlign: "center"});
|
||||||
|
|
||||||
|
$('.update_interests a').css({color: "#1b691e", textDecoration: "none", cursor: "crosshair"});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}); // post volunteer benefits
|
}); // post volunteer benefits
|
||||||
@ -206,7 +214,7 @@ $(function(){
|
|||||||
// expired membership
|
// expired membership
|
||||||
if (d >= expiration_date) {
|
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);
|
parent().css({backgroundColor: "red", textAlign: "center", cursor: "cell", textDecoration: "none"}).prop("title",title);
|
||||||
|
|
||||||
// paid membership
|
// paid membership
|
||||||
} else if (d < expiration_date) {
|
} else if (d < expiration_date) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user