gitlab-org--gitlab-foss/app/assets/javascripts/snippets_list.js
2017-03-05 21:22:40 +01:00

13 lines
366 B
JavaScript

/* eslint-disable arrow-parens, no-param-reassign, space-before-function-paren, func-names, no-var, max-len */
(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);