Skip to content
Snippets Groups Projects
Commit 7f040039 authored by Sean McGivern's avatar Sean McGivern
Browse files

Convert SnippetsList to ES6

parent e119f994
No related branches found
No related tags found
No related merge requests found
(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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment