From 0186497e676b531787045863647f08f076ed0b32 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 23 Jul 2020 17:59:03 +0200 Subject: [PATCH] Fix input box value access on repo create (#12299) Followup to https://github.com/go-gitea/gitea/pull/12202 --- web_src/js/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/js/index.js b/web_src/js/index.js index 344bcbcdbd..03f0c6e4cc 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -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); }