Fixed show more feature if translation mode is enabled.

This commit is contained in:
Martin Edenhofer 2012-05-20 10:52:23 +02:00
parent 341ccb1418
commit a5746d5d7c

View file

@ -203,7 +203,10 @@ class Index extends App.Controller
show_toogle: (e) -> show_toogle: (e) ->
e.preventDefault() e.preventDefault()
$(e.target).hide() $(e.target).hide()
$(e.target).next('div').show() if $(e.target).next('div')[0]
$(e.target).next('div').show()
else
$(e.target).parent().next('div').show()
history_view: (e) -> history_view: (e) ->
e.preventDefault() e.preventDefault()