summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
author蒼時弦也2017-01-10 14:13:30 +0800
committer蒼時弦也2017-01-10 14:13:30 +0800
commit7b02c48d93d05e3ced0a030a13d620559710c9cd (patch)
tree6efbae4ebf336c1d611180c1110aa7618b567b63 /public
parentbe7696170fbfb9a0744a1400709479ac2e4c60e7 (diff)
Adjust permission order to more clarly
Diffstat (limited to '')
-rw-r--r--public/js/index.js14
-rw-r--r--public/views/body.ejs4
2 files changed, 9 insertions, 9 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 5b606242..4cbc6b93 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2287,22 +2287,22 @@ function updatePermission(newPermission) {
label = '<i class="fa fa-shield"></i> Editable';
title = "Signed people can edit";
break;
- case "locked":
- label = '<i class="fa fa-lock"></i> Locked';
- title = "Only owner can edit";
+ case "limited":
+ label = '<i class="fa fa-shield"></i> Limited';
+ title = "Signed people can view & edit"
break;
case "private":
label = '<i class="fa fa-hand-stop-o"></i> Private';
title = "Only owner can view & edit";
break;
- case "limited":
- label = '<i class="fa fa-hand-shield"></i> Limited';
- title = "Signed people can view and edit"
- break;
case "protected":
label = '<i class="fa fa-hand-stop-o"></i> Protected';
title = "Signed people can view";
break;
+ case "locked":
+ label = '<i class="fa fa-lock"></i> Locked';
+ title = "Only owner can edit";
+ break;
}
if (personalInfo.userid && owner && personalInfo.userid == owner) {
label += ' <i class="fa fa-caret-down"></i>';
diff --git a/public/views/body.ejs b/public/views/body.ejs
index 79e36141..988d4f5b 100644
--- a/public/views/body.ejs
+++ b/public/views/body.ejs
@@ -17,10 +17,10 @@
<ul class="dropdown-menu" aria-labelledby="permissionLabel">
<li class="ui-permission-freely"<% if(!allowAnonymous) { %> style="display: none;"<% } %>><a><i class="fa fa-leaf fa-fw"></i> Freely - Anyone can edit</a></li>
<li class="ui-permission-editable"><a><i class="fa fa-shield fa-fw"></i> Editable - Signed people can edit</a></li>
- <li class="ui-permission-locked"><a><i class="fa fa-lock fa-fw"></i> Locked - Only owner can edit</a></li>
- <li class="ui-permission-private"><a><i class="fa fa-hand-stop-o fa-fw"></i> Private - Only owner can view &amp; edit</a></li>
<li class="ui-permission-limited"><a><i class="fa fa-shield fa-fw"></i> Limited - Signed people can edit &amp; view</a></li>
+ <li class="ui-permission-private"><a><i class="fa fa-hand-stop-o fa-fw"></i> Private - Only owner can view &amp; edit</a></li>
<li class="ui-permission-protected"><a><i class="fa fa-hand-stop-o fa-fw"></i> Protected - Only owner can edit</a></li>
+ <li class="ui-permission-locked"><a><i class="fa fa-lock fa-fw"></i> Locked - Only owner can edit</a></li>
<li class="divider"></li>
<li class="ui-delete-note"><a><i class="fa fa-trash-o fa-fw"></i> Delete this note</a></li>
</ul>