2024-11-03 04:00:12 -07:00
|
|
|
import $ from 'jquery';
|
|
|
|
|
|
|
|
export function initRepoNew() {
|
|
|
|
// Repo Creation
|
|
|
|
if ($('.repository.new.repo').length > 0) {
|
|
|
|
$('input[name="gitignores"], input[name="license"]').on('change', () => {
|
|
|
|
const gitignores = $('input[name="gitignores"]').val();
|
|
|
|
const license = $('input[name="license"]').val();
|
|
|
|
if (gitignores || license) {
|
2024-12-11 01:29:04 -07:00
|
|
|
document.querySelector<HTMLInputElement>('input[name="auto_init"]').checked = true;
|
2024-11-03 04:00:12 -07:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|