Commit 229f8068 authored by Simon Knox's avatar Simon Knox

loading icon sometimes toggled alongside MR pipeline contents

unbind existing listenerss and remove duplicate MiniPipelineGraph init
parent 5cc9ebbe
...@@ -252,7 +252,6 @@ require('./smart_interval'); ...@@ -252,7 +252,6 @@ require('./smart_interval');
$('.ci_widget.ci-error').show(); $('.ci_widget.ci-error').show();
this.setMergeButtonClass('btn-danger'); this.setMergeButtonClass('btn-danger');
} }
this.initMiniPipelineGraph();
}; };
MergeRequestWidget.prototype.showCICoverage = function(coverage) { MergeRequestWidget.prototype.showCICoverage = function(coverage) {
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* All dropdown events are fired at the .dropdown-menu's parent element. * All dropdown events are fired at the .dropdown-menu's parent element.
*/ */
bindEvents() { bindEvents() {
$(document).on('shown.bs.dropdown', this.container, this.getBuildsList); $(document).off('shown.bs.dropdown', this.container).on('shown.bs.dropdown', this.container, this.getBuildsList);
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment