summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-06-17 15:58:51 +0800
committerCheng-Han, Wu2016-06-17 15:58:51 +0800
commitfe249c01f5b8052b49ea445150a5c512fd91b083 (patch)
tree964f25a66cd594f0c56fa78103b19c82755b9836 /public
parentcca567453d68752d343904c0a51def1d6426b3ba (diff)
Fix updatePermission before loaded might cause duplicate view rendering
Diffstat (limited to '')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index bbd49685..7ec4bbd7 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1734,7 +1734,7 @@ function emitPermission(_permission) {
function updatePermission(newPermission) {
if (permission != newPermission) {
permission = newPermission;
- refreshView();
+ if (loaded) refreshView();
}
var label = null;
var title = null;