Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-24 04:38:30 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-24 05:59:07 +0300
commitcdec9e472db581acbee72cdcaa703e4155cb4cfb (patch)
tree4ffea09db574c2fab93373abdc398137df40a192 /app/assets/javascripts/ci
parent46de0366b1cc50e67747a457810a54e679bec151 (diff)
Replace \n to <br>
Diffstat (limited to 'app/assets/javascripts/ci')
-rw-r--r--app/assets/javascripts/ci/build.coffee6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/ci/build.coffee b/app/assets/javascripts/ci/build.coffee
index d700742e4a9..98d05e41273 100644
--- a/app/assets/javascripts/ci/build.coffee
+++ b/app/assets/javascripts/ci/build.coffee
@@ -33,8 +33,10 @@ class CiBuild
url: build_url + "/trace.json?state=" + encodeURIComponent(@state)
dataType: "json"
success: (log) =>
- if last_state is @state and log.status is "running"
- @state = if log.state then log.state else ""
+ return unless last_state is @state
+
+ if log.state and log.status is "running"
+ @state = log.state
if log.append
$('.fa-refresh').before log.html
else