diff options
author | John Olheiser <42128690+jolheiser@users.noreply.github.com> | 2020-01-04 20:39:14 -0600 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2020-01-04 21:39:14 -0500 |
commit | 08424648ae0e7db107d0a1d8b4454557cb9f275f (patch) | |
tree | 6c4a71007fb596d4df841ee08a19466c3d1f5a33 /web_src | |
parent | 03d59bcd1dc775b6b8e52136dff1ba508838db2d (diff) | |
download | gitea-08424648ae0e7db107d0a1d8b4454557cb9f275f.tar.gz gitea-08424648ae0e7db107d0a1d8b4454557cb9f275f.zip |
Fix create bugs (#9606)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'web_src')
-rw-r--r-- | web_src/js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 3751c6d9e4..b8145fa439 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2271,7 +2271,7 @@ function initTemplateSearch() { const checkTemplate = function () { const $templateUnits = $('#template_units'); const $nonTemplate = $('#non_template'); - if ($repoTemplate.val() !== '') { + if ($repoTemplate.val() !== '' && $repoTemplate.val() !== '0') { $templateUnits.show(); $nonTemplate.hide(); } else { |