blob: 47bf222678101a1996b37854b091d7be0337e3c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
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');
}
|