diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-30 22:21:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-30 22:21:17 +0800 |
commit | 77ab60df83c5fb60ef8d7c4fe63ac222e3670112 (patch) | |
tree | 44bd9a55b66725a0ee72fda4ce693d721fbe2e69 /public | |
parent | f94869d2d19afd7110a0b996a7e6da339fb4e161 (diff) | |
download | gitea-77ab60df83c5fb60ef8d7c4fe63ac222e3670112.tar.gz gitea-77ab60df83c5fb60ef8d7c4fe63ac222e3670112.zip |
fix bug caused by #788 (#799)
Diffstat (limited to 'public')
-rw-r--r-- | public/js/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js index 47bdbe8928..e52da6e5ba 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -109,7 +109,9 @@ function initCommentForm() { } $('.select-label').dropdown('setting', 'onHide', function(){ - location.reload(); + if (hasLabelUpdateAction) { + location.reload(); + } }); $labelMenu.find('.item:not(.no-select)').click(function () { |