2017-05-16 12:41:50 -04:00
|
|
|
export default function setupProjectEdit() {
|
|
|
|
const $transferForm = $('.js-project-transfer-form');
|
2017-08-03 16:31:53 -04:00
|
|
|
const $selectNamespace = $transferForm.find('select.select2');
|
2017-05-09 11:09:20 -04:00
|
|
|
|
2017-05-16 12:41:50 -04:00
|
|
|
$selectNamespace.on('change', () => {
|
|
|
|
$transferForm.find(':submit').prop('disabled', !$selectNamespace.val());
|
|
|
|
});
|
|
|
|
$selectNamespace.trigger('change');
|
2017-05-09 11:09:20 -04:00
|
|
|
}
|