aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/acl.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-09 21:13:40 -0700
committerfriendica <info@friendica.com>2014-04-09 21:13:40 -0700
commit8d8d73924224f1f3862bffa4822b7d62600afd62 (patch)
treeeb83b0491fe69a2d712e8b3e898448ec363529a2 /view/js/acl.js
parent795d74171358abe23cc4be01dac0e48d04ee46b4 (diff)
parent5d5ff22b1dc551863342d2c7c7f44607bbd44777 (diff)
downloadvolse-hubzilla-8d8d73924224f1f3862bffa4822b7d62600afd62.tar.gz
volse-hubzilla-8d8d73924224f1f3862bffa4822b7d62600afd62.tar.bz2
volse-hubzilla-8d8d73924224f1f3862bffa4822b7d62600afd62.zip
Merge https://github.com/friendica/red into pending_merge
Diffstat (limited to 'view/js/acl.js')
-rw-r--r--view/js/acl.js16
1 files changed, 2 insertions, 14 deletions
diff --git a/view/js/acl.js b/view/js/acl.js
index 6c3d9b462..308e65131 100644
--- a/view/js/acl.js
+++ b/view/js/acl.js
@@ -162,23 +162,11 @@ ACL.prototype.set_deny = function(itemid){
}
ACL.prototype.update_view = function(){
- var jotpermslock;
- var jotpermsunlock;
- if (document.jotpermslock == null) {
- jotpermslock = 'lock';
- } else {
- jotpermslock = document.jotpermslock;
- }
- if (document.jotpermsunlock == null) {
- jotpermsunlock = 'unlock';
- } else {
- jotpermsunlock = document.jotpermsunlock;
- }
if (that.allow_gid.length==0 && that.allow_cid.length==0 &&
that.deny_gid.length==0 && that.deny_cid.length==0){
that.showall.addClass("selected");
/* jot acl */
- $('#jot-perms-icon').removeClass(jotpermslock).addClass(jotpermsunlock);
+ $('#jot-perms-icon').removeClass('icon-lock').addClass('icon-unlock');
$('#jot-public').show();
$('.profile-jot-net input').attr('disabled', false);
if(typeof editor != 'undefined' && editor != false) {
@@ -188,7 +176,7 @@ ACL.prototype.update_view = function(){
} else {
that.showall.removeClass("selected");
/* jot acl */
- $('#jot-perms-icon').removeClass(jotpermsunlock).addClass(jotpermslock);
+ $('#jot-perms-icon').removeClass('icon-unlock').addClass('icon-lock');
$('#jot-public').hide();
$('.profile-jot-net input').attr('disabled', 'disabled');
$('#profile-jot-desc').html('&nbsp;');