Fixed onmouseout event from texture list.
Only block textures are loaded.
This commit is contained in:
parent
eeac0b2088
commit
81d47e9db9
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue