Move toggleTailing to actions in PreView

This commit is contained in:
Piotr Sarnacki 2015-01-06 14:08:21 +01:00
parent 36b174102a
commit f566d601ee

View File

@ -111,15 +111,15 @@ Travis.reopen
url
).property('job.log.id', 'job.log.token')
toggleTailing: ->
Travis.tailing.toggle()
@engine.autoCloseFold = !Travis.tailing.isActive()
event.preventDefault()
actions:
toTop: () ->
$(window).scrollTop(0)
toggleTailing: ->
Travis.tailing.toggle()
@engine.autoCloseFold = !Travis.tailing.isActive()
event.preventDefault()
noop: -> # TODO required?
Log.Scroll = (options) ->