blob: 436288325ae5070c4d9a380ec27a8697d09d4b74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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) {
document.querySelector<HTMLInputElement>('input[name="auto_init"]').checked = true;
}
});
}
}
|