diff options
author | Robert Speicher <robert@gitlab.com> | 2015-10-22 07:09:48 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2015-10-22 07:09:48 +0000 |
commit | 7c0d2d329e09b5b38e53af003014cfa95b89ad74 (patch) | |
tree | 835904b38737b138efb065d1ce55722ac000980d /app | |
parent | f810fab7052c24df192aa518d2b9e5a1901cda4a (diff) | |
parent | c21d46c29ffe2547cb454c2658fa9644a19f1dd8 (diff) | |
download | gitlab-ce-7c0d2d329e09b5b38e53af003014cfa95b89ad74.tar.gz |
Merge branch 'fix-build-trace-updating' into 'master'
Fix build trace updating
Fixes #2910
See merge request !1657
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/ci/build.coffee | 2 | ||||
-rw-r--r-- | app/views/projects/builds/show.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/ci/build.coffee b/app/assets/javascripts/ci/build.coffee index c30859b484b..93385b32a13 100644 --- a/app/assets/javascripts/ci/build.coffee +++ b/app/assets/javascripts/ci/build.coffee @@ -22,7 +22,7 @@ class CiBuild # Only valid for runnig build when output changes during time # CiBuild.interval = setInterval => - if window.location.href is build_url + if window.location.href.split("#").first() is build_url $.ajax url: build_url dataType: "json" diff --git a/app/views/projects/builds/show.html.haml b/app/views/projects/builds/show.html.haml index c45bfb27b8f..3a8172dc8e6 100644 --- a/app/views/projects/builds/show.html.haml +++ b/app/views/projects/builds/show.html.haml @@ -175,4 +175,4 @@ :javascript - new CiBuild("#{namespace_project_build_path(@project.namespace, @project, @build)}", "#{@build.status}") + new CiBuild("#{namespace_project_build_url(@project.namespace, @project, @build)}", "#{@build.status}") |