Fixed onmouseout event from texture list.

Only block textures are loaded.
This commit is contained in:
Felipe Martín 2013-05-31 11:54:17 +02:00
parent eeac0b2088
commit 81d47e9db9
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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