debian-mirror-gitlab/app/assets/javascripts/pages/projects/branches/new/index.js
2018-05-09 12:01:36 +05:30

6 lines
243 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))
));