Commit 606147c3 authored by Phil Hughes's avatar Phil Hughes

Replace merge request widget body

parent 125abfd4
...@@ -126,7 +126,9 @@ ...@@ -126,7 +126,9 @@
MergeRequestWidget.prototype.getMergeStatus = function() { MergeRequestWidget.prototype.getMergeStatus = function() {
return $.get(this.opts.merge_check_url, function(data) { 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment