BigW Consortium Gitlab

project_edit.js 324 Bytes
Newer Older
1 2 3
export default function setupProjectEdit() {
  const $transferForm = $('.js-project-transfer-form');
  const $selectNamespace = $transferForm.find('.select2');
4

5 6 7 8
  $selectNamespace.on('change', () => {
    $transferForm.find(':submit').prop('disabled', !$selectNamespace.val());
  });
  $selectNamespace.trigger('change');
9
}