Replace merge request widget body

This commit is contained in:
Phil Hughes 2017-01-22 12:38:53 +00:00
parent 125abfd4b2
commit 606147c32f

View file

@ -126,7 +126,9 @@
MergeRequestWidget.prototype.getMergeStatus = function() {
return $.get(this.opts.merge_check_url, function(data) {
return $('.mr-state-widget').replaceWith(data);
var $html = $(data);
$('.mr-state-body').replaceWith($html.find('.mr-state-body'));
$('.mr-state-footer').replaceWith($html.find('.mr-state-footer'));
});
};