Make a faster update of server side changes.

This commit is contained in:
Martin Edenhofer 2016-06-08 00:12:03 +02:00
parent 451a768f8e
commit 8aebe614ec

View file

@ -50,7 +50,7 @@ class App.TicketZoom extends App.Controller
update = =>
@fetch(@ticket_id, false)
if !@ticketUpdatedAtLastCall || ( new Date(data.updated_at).toString() isnt new Date(@ticketUpdatedAtLastCall).toString() )
@delay(update, 1100, "ticket-zoom-#{@ticket_id}")
@delay(update, 500, "ticket-zoom-#{@ticket_id}")
)
# rerender view, e. g. on langauge change