From 02cd3d633e6e44f6a0b50def5dc76d4cf91a6a54 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Fri, 18 Dec 2015 10:15:16 -0600 Subject: Updated to show locked-modal instead signin-modal when permission is "locked" --- public/js/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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') { -- cgit v1.2.3