     showAutoTailWaitingDialog: ->
         vex.dialog.alert
             overlayClosesOnClick: false
-            message: autoTailWaitingTemplate 
+            message: autoTailWaitingTemplate
                 autoTailFilename: @autoTailFilename
             buttons: [
                 $.extend _.clone(vex.dialog.buttons.NO), text: 'Close'

        matchingTask = tasks.find (task) -> task.get('taskId').startedAt > timestamp
        if matchingTask
            $('.auto-tail-checklist').addClass 'waiting-for-file'
            @stopListening @activeTasks, 'add'
            @autoTailTaskFiles = new TaskFiles [], taskId: matchingTask.get('id')

    handleActiveTasksAdd: (task) =>
        $('.auto-tail-checklist').addClass 'waiting-for-file'
        @autoTailTaskId = task.get('id')
        @autoTailTaskFiles = new TaskFiles [], taskId: @autoTailTaskId
        @listenTo @autoTailTaskFiles, 'add', @handleTaskFilesAdd

    handleTaskFilesAdd: =>
        if @autoTailTaskFiles.findWhere({name: @autoTailFilename})

class AutoTailer extends Backbone.View

    initialize: ({@requestId, @autoTailFilename, @autoTailTimestamp}) ->

        @history     = new RequestHistoricalTasks [], {@requestId}

        @activeTasks = new RequestTasks [],
