Browse Source

Fix input box value access on repo create (#12299)

Followup to https://github.com/go-gitea/gitea/pull/12202
for-closed-social
silverwind 3 years ago
committed by GitHub
parent
commit
0186497e67
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      web_src/js/index.js

+ 2
- 2
web_src/js/index.js View File

@ -758,8 +758,8 @@ async function initRepository() {
// Repo Creation
if ($('.repository.new.repo').length > 0) {
$('input[name="gitignores"], input[name="license"]').on('change', () => {
const gitignores = $('input[name="gitignores"]').prop('checked');
const license = $('input[name="license"]').prop('checked');
const gitignores = $('input[name="gitignores"]').val();
const license = $('input[name="license"]').val();
if (gitignores || license) {
$('input[name="auto_init"]').prop('checked', true);
}

Loading…
Cancel
Save