Convert SnippetsList to ES6
This commit is contained in:
parent
e119f994d7
commit
7f0400398d
|
@ -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);
|
|
|
@ -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);
|
Loading…
Reference in New Issue