提交 606147c3 编写于 作者: P Phil Hughes

Replace merge request widget body

上级 125abfd4
......@@ -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'));
});
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册