BigW Consortium Gitlab

Commit 7f040039 by Sean McGivern

Convert SnippetsList to ES6

parent e119f994
(function() {
this.gl.SnippetsList = function() {
$('.snippets-list-holder .pagination').on('ajax:success', function(e, data) {
$('.snippets-list-holder').replaceWith(data.html);
});
};
}).call(this);
(global => {
global.gl = global.gl || {};
gl.SnippetsList = function() {
var $holder = $('.snippets-list-holder');
$holder.find('.pagination').on('ajax:success', (e, data) => {
$holder.replaceWith(data.html);
});
}
})(window);
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