Updated to show locked-modal instead signin-modal when permission is "locked"

This commit is contained in:
Wu Cheng-Han 2015-12-18 10:15:16 -06:00
parent 21ad5cfd60
commit 02cd3d633e

View file

@ -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') {