This closes #83 adding probation status to shop_log for contact_id.

This commit is contained in:
Jonathan Rosenbaum
2018-12-20 22:04:55 +00:00
parent 23ce8ffaca
commit ca4085109c
3 changed files with 38 additions and 3 deletions
+17 -1
View File
@@ -32,6 +32,23 @@ $(function(){
});
$(banned_list).css({backgroundColor: "red"}).prop("title", "BANNED");
// return probation list
var probation_list, pl;
$.post("json/contact.php", {probation: 1}, function (data) {
if (data) {
pl = $.parseJSON(data);
$(pl).each(function(i,v) {
if (i === 0) {
probation_list = "#" + v;
} else {
probation_list = probation_list + ",#" + v;
}
});
}
});
$(probation_list).css({backgroundColor: "#eed202"}).prop("title", "PROBATION");
// error handler for shops with a popup dialog (TODO)
function error_handler(input,error_span,error,error_text,event) {
@@ -87,7 +104,6 @@ $(function(){
} );
// could have done this in php, but this separates out the view logic
var membership_ids, volunteer_ids;
var last_index = $("#shop_log tr[id]").length;