diff options
author | Cheng-Han, Wu | 2016-06-17 15:58:51 +0800 |
---|---|---|
committer | Cheng-Han, Wu | 2016-06-17 15:58:51 +0800 |
commit | fe249c01f5b8052b49ea445150a5c512fd91b083 (patch) | |
tree | 964f25a66cd594f0c56fa78103b19c82755b9836 | |
parent | cca567453d68752d343904c0a51def1d6426b3ba (diff) |
Fix updatePermission before loaded might cause duplicate view rendering
-rw-r--r-- | public/js/index.js | 2 |
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; |