mirror of
https://github.com/fspc/Yellow-Bike-Database.git
synced 2026-09-03 02:11:38 -04:00
This closes #83 adding probation status to shop_log for contact_id.
This commit is contained in:
+17
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user