loading icon sometimes toggled alongside MR pipeline contents

unbind existing listenerss and remove duplicate MiniPipelineGraph init
This commit is contained in:
Simon Knox 2017-02-19 21:40:39 +11:00
parent 5cc9ebbe14
commit 229f806835
2 changed files with 1 additions and 2 deletions

View file

@ -252,7 +252,6 @@ require('./smart_interval');
$('.ci_widget.ci-error').show();
this.setMergeButtonClass('btn-danger');
}
this.initMiniPipelineGraph();
};
MergeRequestWidget.prototype.showCICoverage = function(coverage) {

View file

@ -28,7 +28,7 @@
* All dropdown events are fired at the .dropdown-menu's parent element.
*/
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);
}
/**