summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-01-30 22:21:17 +0800
committerGitHub <noreply@github.com>2017-01-30 22:21:17 +0800
commit77ab60df83c5fb60ef8d7c4fe63ac222e3670112 (patch)
tree44bd9a55b66725a0ee72fda4ce693d721fbe2e69 /public
parentf94869d2d19afd7110a0b996a7e6da339fb4e161 (diff)
downloadgitea-77ab60df83c5fb60ef8d7c4fe63ac222e3670112.tar.gz
gitea-77ab60df83c5fb60ef8d7c4fe63ac222e3670112.zip
fix bug caused by #788 (#799)
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js4
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 () {