summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFatih Acet <acetfatih@gmail.com>2016-12-26 18:58:34 +0000
committerFatih Acet <acetfatih@gmail.com>2016-12-26 18:58:34 +0000
commit29c64545b5c2bcb8588865df449f2b946a6df07e (patch)
tree5af73e4eb049f6bebe0b6fde60557abd74504b19
parente10f19fd46d943a168cb98fd511e155422a4054e (diff)
parentb5d6d107af29a82b5d1b13f9e031ab5ef2ca829c (diff)
downloadgitlab-ce-29c64545b5c2bcb8588865df449f2b946a6df07e.tar.gz
Merge branch '26040-hide-scroll-top' into 'master'
Hide Scroll Top button for failed Build page Closes #26040 See merge request !8295
-rw-r--r--app/assets/javascripts/build.js4
-rw-r--r--changelogs/unreleased/26040-hide-scroll-top.yml4
2 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/javascripts/build.js b/app/assets/javascripts/build.js
index 5e449170cd3..bc13c46443a 100644
--- a/app/assets/javascripts/build.js
+++ b/app/assets/javascripts/build.js
@@ -92,8 +92,8 @@
success: function(buildData) {
$('.js-build-output').html(buildData.trace_html);
if (removeRefreshStatuses.indexOf(buildData.status) >= 0) {
- this.initScrollMonitor();
- return this.$buildRefreshAnimation.remove();
+ this.$buildRefreshAnimation.remove();
+ return this.initScrollMonitor();
}
}.bind(this)
});
diff --git a/changelogs/unreleased/26040-hide-scroll-top.yml b/changelogs/unreleased/26040-hide-scroll-top.yml
new file mode 100644
index 00000000000..f68cb1dd51d
--- /dev/null
+++ b/changelogs/unreleased/26040-hide-scroll-top.yml
@@ -0,0 +1,4 @@
+---
+title: Hide Scroll Top button for failed build page
+merge_request: 8295
+author: