diff options
Diffstat (limited to '')
-rw-r--r-- | source/features/new-repo-disable-projects-and-wikis.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/features/new-repo-disable-projects-and-wikis.tsx b/source/features/new-repo-disable-projects-and-wikis.tsx index 6c1d3b98..9c58ee19 100644 --- a/source/features/new-repo-disable-projects-and-wikis.tsx +++ b/source/features/new-repo-disable-projects-and-wikis.tsx @@ -33,7 +33,10 @@ function setStorage(): void { async function init(): Promise<void> { await api.expectToken(); - select.last('.js-repo-init-setting-container')!.after( + select.last([ + '.js-repo-init-setting-container', // IsNewRepo + '.form-checkbox' // IsNewRepoTemplate + ])!.after( <div className="form-checkbox checked mt-0 mb-3"> <label> <input @@ -48,12 +51,13 @@ async function init(): Promise<void> { </div> ); - delegate(document, '#new_repository', 'submit', setStorage); + delegate(document, '#new_repository, #new_new_repository', 'submit', setStorage); } void features.add(__filebasename, { include: [ - pageDetect.isNewRepo + pageDetect.isNewRepo, + pageDetect.isNewRepoTemplate ], init }, { |