                 success: (resp, status, xhr) =>
                     if resp.status is 'timeout'
                         @stopPing()
-                        @notifyTimeout(resp.location)
+                        @timeout(resp.location)
 
                 error: (xhr, status, error) =>
                     @stopPing()

                dismissable: false
                timeout: false
                level: 'warning'

        parse: (attrs) ->
            # Title of the API

                    # Handle redirect
                    if error is 'FOUND'
                        location = xhr.getResponseHeader('Location')
                        @timeout(location)

        timeout: (location) ->
            if location
                message = "Your session timed out. Please \
                          <a href=\"#{ location }\">refresh the page</a>."
