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

10 lines
330 B
JavaScript
Raw Normal View History

2017-09-10 17:25:29 +05:30
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');
}