debian-mirror-gitlab/app/assets/javascripts/pages/projects/branches/new/index.js
2018-12-13 13:39:08 +05:30

11 lines
267 B
JavaScript

import $ from 'jquery';
import NewBranchForm from '~/new_branch_form';
document.addEventListener(
'DOMContentLoaded',
() =>
new NewBranchForm(
$('.js-create-branch-form'),
JSON.parse(document.getElementById('availableRefs').innerHTML),
),
);