2018-05-09 12:01:36 +05:30
|
|
|
import $ from 'jquery';
|
|
|
|
|
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');
|
|
|
|
}
|