Commit e5f9fdf9 authored by Annabel Dunstone's avatar Annabel Dunstone

Refactor merge_request-tabs

parent 30d578f6
......@@ -188,14 +188,12 @@
}
return this._get({
url: source + ".json",
success: (function(_this) {
return function(data) {
document.querySelector("div#pipelines").innerHTML = data.html;
gl.utils.localTimeAgo($('.js-timeago', 'div#pipelines'));
_this.pipelinesLoaded = true;
return _this.scrollToElement("#pipelines");
};
})(this)
success: function(data) {
$('#pipelines').html(data.html);
gl.utils.localTimeAgo($('.js-timeago', '#pipelines'));
this.pipelinesLoaded = true;
return this.scrollToElement("#pipelines");
}.bind(this)
});
};
......
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