Commit e5f9fdf9 authored by Annabel Dunstone's avatar Annabel Dunstone

Refactor merge_request-tabs

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