fix hash in Thanks for showing us
banner
#4
1 changed files with 5 additions and 1 deletions
|
@ -12,10 +12,14 @@
|
||||||
|
|
||||||
if (PetQuery.name) {
|
if (PetQuery.name) {
|
||||||
if (PetQuery.species && PetQuery.color) {
|
if (PetQuery.species && PetQuery.color) {
|
||||||
|
var image_url = petImage("cpn/" + PetQuery.name, 1);
|
||||||
|
if (PetQuery.name.startsWith("@")) {
|
||||||
|
image_url = petImage("cp/" + PetQuery.name.substr(1), 1);
|
||||||
|
}
|
||||||
$("#pet-query-notice-template")
|
$("#pet-query-notice-template")
|
||||||
.tmpl({
|
.tmpl({
|
||||||
pet_name: PetQuery.name,
|
pet_name: PetQuery.name,
|
||||||
pet_image_url: petImage("cpn/" + PetQuery.name, 1),
|
pet_image_url: image_url,
|
||||||
})
|
})
|
||||||
.prependTo("#container");
|
.prependTo("#container");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue