Welcome to mirror list, hosted at ThFree Co, Russian Federation.

snippets_list.js.es6 « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2128007113f3281079fe53661d1830d453137901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 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);