diff options
author | friendica <info@friendica.com> | 2013-11-27 23:36:38 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-27 23:36:38 -0800 |
commit | 689b94bf09519398c0f3c955f0d39eb93235b4ac (patch) | |
tree | 8f3993307169cd6640a336f4ac4abe7f2799f7b7 | |
parent | 21e465e48ae918b75d011d0fc5de1864bb474edc (diff) | |
parent | a706000018b928016cf4072971695cf3cfa04942 (diff) | |
download | volse-hubzilla-689b94bf09519398c0f3c955f0d39eb93235b4ac.tar.gz volse-hubzilla-689b94bf09519398c0f3c955f0d39eb93235b4ac.tar.bz2 volse-hubzilla-689b94bf09519398c0f3c955f0d39eb93235b4ac.zip |
Merge pull request #216 from omigeot/master
Make CSS classes for ACL "lock" icon customizable
-rw-r--r-- | js/acl.js | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -152,11 +152,23 @@ 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('lock').addClass('unlock'); + $('#jot-perms-icon').removeClass(jotpermslock).addClass(jotpermsunlock); $('#jot-public').show(); $('.profile-jot-net input').attr('disabled', false); if(typeof editor != 'undefined' && editor != false) { @@ -166,7 +178,7 @@ ACL.prototype.update_view = function(){ } else { that.showall.removeClass("selected"); /* jot acl */ - $('#jot-perms-icon').removeClass('unlock').addClass('lock'); + $('#jot-perms-icon').removeClass(jotpermsunlock).addClass(jotpermslock); $('#jot-public').hide(); $('.profile-jot-net input').attr('disabled', 'disabled'); $('#profile-jot-desc').html(' '); |