Skip to content

Commit 0186497

Browse files
authored
Fix input box value access on repo create (#12299)
Followup to #12202
1 parent 4497db9 commit 0186497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,8 +758,8 @@ async function initRepository() {
758758
// Repo Creation
759759
if ($('.repository.new.repo').length > 0) {
760760
$('input[name="gitignores"], input[name="license"]').on('change', () => {
761-
const gitignores = $('input[name="gitignores"]').prop('checked');
762-
const license = $('input[name="license"]').prop('checked');
761+
const gitignores = $('input[name="gitignores"]').val();
762+
const license = $('input[name="license"]').val();
763763
if (gitignores || license) {
764764
$('input[name="auto_init"]').prop('checked', true);
765765
}

0 commit comments

Comments
 (0)