better dynamic check on .ownsPet

This commit is contained in:
Tyler Renelle 2013-02-11 01:25:00 -05:00
parent 3c91355581
commit 4b1d7d6830

View file

@ -484,7 +484,7 @@ do a find for the string after "→"
<pet:>
<div class="span3 shop-pet" rel=tooltip title="{.text} - {.value} Tokens">
<div style='position:relative'>
{#if .userOwns}<i class='icon-ok shop-pet-owned-check'></i>{/}
{#if _user.items.pets[.name]}<i class='icon-ok shop-pet-owned-check'></i>{/}
<img x-bind="click:selectPet" data-pet='{.name}' src='img/BrowserQuest/habitrpg_mods/{.icon}'/>
</div>
</div>