gitlab-org--gitlab-foss/app/assets/javascripts/project_edit.js
2018-03-09 15:18:09 -06:00

11 lines
355 B
JavaScript

import $ from 'jquery';
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');
}