| 166 |
after: function(data){ |
after: function(data){ |
| 167 |
if (data.error){ |
if (data.error){ |
| 168 |
$("#rating-message-" + id).css("background", "#f95"); |
$("#rating-message-" + id).css("background", "#f95"); |
| 169 |
$("#rating-message-" + id).html(data.error).fadeIn("slow"); |
$("#rating-message-" + id).html(data.error).fadeIn("fast"); |
| 170 |
return false; |
return false; |
| 171 |
} |
} |
| 172 |
$("#rating-message-" + id).css("background","#ff5"); |
$("#rating-message-" + id).css("background","#ff5"); |
| 173 |
//$("#rating-message-" + id).html(data.response).fadeIn("slow").fadeOut("slow"); |
//$("#rating-message-" + id).html(data.response).fadeIn("slow").fadeOut("slow"); |
| 174 |
$("#rating-message-" + id).html(data.response).fadeIn("slow"); |
$("#rating-message-" + id).html(data.response).fadeIn("fast"); |
| 175 |
|
|
| 176 |
mean = data.mean.split("."); |
mean = data.mean.split("."); |
| 177 |
var stars = $("#rating-mean-stars-" + id).find("div.star"); |
var stars = $("#rating-mean-stars-" + id).find("div.star"); |