summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/application_settings.js.es6
blob: ce7d5129d8da603a5c57fa9c4e327c08467bae4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(global => {
  global.gl = global.gl || {};

  gl.ApplicationSettings = function() {
    var usage_data_url = $('.usage-data').data('endpoint');

    $.ajax({
      type: "GET",
      url: usage_data_url,
      dataType: "html",
      success: function (html) {
        $(".usage-data").html(html);
      }
    });
  };
})(window);