Commit db930696 authored by Jacob Schatz's avatar Jacob Schatz

Merge branch 'mr-widget-replace-body' into 'master'

Replace merge request widget body

See merge request !8697
parents 8ff3db13 606147c3
...@@ -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