From 81d47e9db9984ca133229610eb0ad6d7a06bac36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Mart=C3=ADn?= Date: Fri, 31 May 2013 11:54:17 +0200 Subject: [PATCH] Fixed onmouseout event from texture list. Only block textures are loaded. --- minecraftcodex/studio/static/coffee/loader.coffee | 4 ++-- minecraftcodex/studio/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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