debian-mirror-gitlab/app/assets/javascripts/usage_ping.js

16 lines
288 B
JavaScript
Raw Normal View History

2017-08-17 22:00:37 +05:30
function UsagePing() {
const usageDataUrl = $('.usage-data').data('endpoint');
$.ajax({
type: 'GET',
url: usageDataUrl,
dataType: 'html',
success(html) {
$('.usage-data').html(html);
},
});
}
window.gl = window.gl || {};
window.gl.UsagePing = UsagePing;