1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 08:53:23 -05:00

Shows if banned.

* tr becomes red
* title becomes banned
* not all td currently change, however, it is sufficient to get the message across, and let the greeter know there is an issue.
This commit is contained in:
Jonathan Rosenbaum 2017-10-11 08:05:43 +00:00
parent 6eba0250d6
commit b9e17872ac

View File

@ -17,11 +17,22 @@ $(function(){
$(".shop_user_role").css({fontSize: ".75em", fontWeight: "bold"})
// return banned list
var banned_list;
var banned_list, bl;
$.post("json/contact.php", {banned: 1}, function (data) {
banned_list = data;
if (data) {
bl = $.parseJSON(data);
$(bl).each(function(i,v) {
if (i === 0) {
banned_list = "#" + v;
} else {
banned_list = banned_list + ",#" + v;
}
});
}
});
$(banned_list).css({backgroundColor: "red"}).prop("title","BANNED");
// error handler for shops with a popup dialog (TODO)
function error_handler(input,error_span,error,error_text,event) {
var trans_error = 0;