replace lock icon with icon-{lock, unlock}

This commit is contained in:
marijus
2014-04-09 17:10:07 +02:00
parent c4233232b7
commit 74bd772a5b
11 changed files with 19 additions and 37 deletions

View File

@@ -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(' ');