diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-10-09 22:41:51 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-10-09 22:41:51 +0100 |
commit | 058381b6a5a331a85389d12e032117621bab19cc (patch) | |
tree | 7460b56d23efef9918148c85fb6ba2a6f57584a0 | |
parent | 69651a27c98b6ad0616ac276e8a61dbf95c2cd7d (diff) | |
download | gitlab-ce-058381b6a5a331a85389d12e032117621bab19cc.tar.gz |
Fix broken tests
-rw-r--r-- | app/assets/javascripts/job.js | 6 | ||||
-rw-r--r-- | app/views/projects/jobs/_sidebar.html.haml | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/app/assets/javascripts/job.js b/app/assets/javascripts/job.js index 953975a00a5..c6b5844dff6 100644 --- a/app/assets/javascripts/job.js +++ b/app/assets/javascripts/job.js @@ -16,9 +16,7 @@ export default class Job { this.$document = $(document); this.logBytes = 0; this.hasBeenScrolled = false; - this.updateDropdown = this.updateDropdown.bind(this); - this.getBuildTrace = this.getBuildTrace.bind(this); this.$buildTrace = $('#build-trace'); this.$buildRefreshAnimation = $('.js-build-refresh'); @@ -79,7 +77,7 @@ export default class Job { this.updateArtifactRemoveDate(); this.initAffixTopArea(); - this.getTrace(); + this.getBuildTrace(); } initAffixTopArea() { @@ -164,7 +162,7 @@ export default class Job { this.$sidebar = $('.js-build-sidebar'); } - getTrace() { + getBuildTrace() { return $.ajax({ url: `${this.pageUrl}/trace.json`, data: { state: this.state }, diff --git a/app/views/projects/jobs/_sidebar.html.haml b/app/views/projects/jobs/_sidebar.html.haml index 43e23bb2200..d5c6d329ce4 100644 --- a/app/views/projects/jobs/_sidebar.html.haml +++ b/app/views/projects/jobs/_sidebar.html.haml @@ -48,7 +48,7 @@ - if @build.trigger_variables.any? %p - %button.btn.group.btn-group-justified.reveal-variables Reveal Variables + %button.btn.group.btn-group-justified.js-reveal-variables Reveal Variables %dl.js-build-variables.trigger-build-variables.hide - @build.trigger_variables.each do |trigger_variable| |