diff --git a/web_src/js/index.js b/web_src/js/index.js
index 57258b7175..344bcbcdbd 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -755,6 +755,17 @@ 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');
+      if (gitignores || license) {
+        $('input[name="auto_init"]').prop('checked', true);
+      }
+    });
+  }
+
   // Issues
   if ($('.repository.view.issue').length > 0) {
     // Edit issue title