Convert SnippetsList to ES6

This commit is contained in:
Sean McGivern 2016-09-05 17:38:20 +01:00
parent e119f994d7
commit 7f0400398d
2 changed files with 11 additions and 7 deletions

View File

@ -1,7 +0,0 @@
(function() {
this.gl.SnippetsList = function() {
$('.snippets-list-holder .pagination').on('ajax:success', function(e, data) {
$('.snippets-list-holder').replaceWith(data.html);
});
};
}).call(this);

View File

@ -0,0 +1,11 @@
(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);