From 77ab60df83c5fb60ef8d7c4fe63ac222e3670112 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 30 Jan 2017 22:21:17 +0800 Subject: [PATCH] fix bug caused by #788 (#799) --- public/js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 () {