summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2015-12-18 10:15:16 -0600
committerWu Cheng-Han2015-12-18 10:15:16 -0600
commit02cd3d633e6e44f6a0b50def5dc76d4cf91a6a54 (patch)
tree059b89ab466578fdef8cc9fe51e62a181d48b621
parent21ad5cfd601c7420a6990b65dcbb42ca7b41d1ad (diff)
Updated to show locked-modal instead signin-modal when permission is "locked"
Diffstat (limited to '')
-rw-r--r--public/js/index.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 1e4bc9fe..4559cd92 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -1722,7 +1722,14 @@ editor.on('beforeChange', function (cm, change) {
if (!isIgnoreEmitEvent) {
if (!havePermission()) {
change.canceled = true;
- $('.signin-modal').modal('show');
+ switch (permission) {
+ case "editable":
+ $('.signin-modal').modal('show');
+ break;
+ case "locked":
+ $('.locked-modal').modal('show');
+ break;
+ }
}
} else {
if (change.origin == 'ignoreHistory') {