Skip to content
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.

Commit

Permalink
Fix bug that unrelated builds are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
r7kamura committed Jul 7, 2013
1 parent c3bc201 commit 0d6deac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/events.js.coffee
Expand Up @@ -18,4 +18,5 @@ $ ->
new Altria.ServerEvent()
.on 'build.finished', (attributes) ->
$.ajax "/builds/#{attributes.id}", success: (data) ->
$('body').html(data)
if location.pathname == "/builds/#{attributes.id}"
$('body').html(data)

0 comments on commit 0d6deac

Please sign in to comment.