debian-mirror-gitlab/app/assets/javascripts/project_edit.js
2017-09-10 17:25:29 +05:30

9 lines
330 B
JavaScript

export default function setupProjectEdit() {
const $transferForm = $('.js-project-transfer-form');
const $selectNamespace = $transferForm.find('select.select2');
$selectNamespace.on('change', () => {
$transferForm.find(':submit').prop('disabled', !$selectNamespace.val());
});
$selectNamespace.trigger('change');
}