aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/index.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);
}