diff --git a/minecraftcodex/studio/static/coffee/loader.coffee b/minecraftcodex/studio/static/coffee/loader.coffee index 9ebb278..3349e31 100644 --- a/minecraftcodex/studio/static/coffee/loader.coffee +++ b/minecraftcodex/studio/static/coffee/loader.coffee @@ -8,8 +8,8 @@ window.onload = -> $('.texture-list .item').hover -> $('.texture-name').html $(@).attr('data-name') - $('div.texture-list').on 'onmouseout', -> - $('.texture.name').html 'Mouseover a texture' + $('.texture-list').on 'mouseout', -> + $('.texture-name').html 'Mouseover a texture' $('input.texture-search').on 'keyup', (event) -> # [enter] -> do search diff --git a/minecraftcodex/studio/views.py b/minecraftcodex/studio/views.py index 0794145..6a5800c 100644 --- a/minecraftcodex/studio/views.py +++ b/minecraftcodex/studio/views.py @@ -7,7 +7,7 @@ from django.core import serializers def main(request): - textures = Texture.objects.all() + textures = Texture.objects.filter(type='blocks') data = { 'textures': textures