aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-07-23 17:59:03 +0200
committerGitHub <noreply@github.com>2020-07-23 11:59:03 -0400
commit0186497e676b531787045863647f08f076ed0b32 (patch)
tree8e0fc4ca0254dfd07c36c03fe6f96704efbfdb35 /web_src/js
parent4497db96e0590c16b254c76657fbc13d703cb139 (diff)
downloadgitea-0186497e676b531787045863647f08f076ed0b32.tar.gz
gitea-0186497e676b531787045863647f08f076ed0b32.zip
Fix input box value access on repo create (#12299)
Followup to https://github.com/go-gitea/gitea/pull/12202
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/index.js4
1 files 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);
}