diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-06-30 16:27:30 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-07-06 10:10:00 -0500 |
commit | cbef9f08f5e3112631e7e083b55d90d6550942f1 (patch) | |
tree | 3cb51adb9fcf38235eda6087bd4144846b9d9068 | |
parent | dfe7b143475f07d75e2336a397d2817db26b1709 (diff) | |
download | gitlab-ce-cbef9f08f5e3112631e7e083b55d90d6550942f1.tar.gz |
refactor snippets_list.js to use ES class syntax
-rw-r--r-- | app/assets/javascripts/snippets_list.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/assets/javascripts/snippets_list.js b/app/assets/javascripts/snippets_list.js index da7b9e08447..3b6d999b1c3 100644 --- a/app/assets/javascripts/snippets_list.js +++ b/app/assets/javascripts/snippets_list.js @@ -1,9 +1,9 @@ -/* eslint-disable arrow-parens, no-param-reassign, space-before-function-paren, func-names, no-var, max-len */ - -window.gl.SnippetsList = function() { - var $holder = $('.snippets-list-holder'); +function SnippetsList() { + const $holder = $('.snippets-list-holder'); $holder.find('.pagination').on('ajax:success', (e, data) => { $holder.replaceWith(data.html); }); -}; +} + +window.gl.SnippetsList = SnippetsList; |