aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-15 03:08:26 -0700
committerFriendika <info@friendika.com>2011-09-15 03:08:26 -0700
commitf32c6c2ee9a966a38c4ac0f336daaa6960156d6e (patch)
treec00bb168774f7c40bfa4199b9da1f065e845bcd5 /include
parent8f1e2efd5bf2266fd9603676a08ce0120c3e69ac (diff)
parent3ee9f2b3a114c866bc8859e0e3c4ccb8f89543d4 (diff)
downloadvolse-hubzilla-f32c6c2ee9a966a38c4ac0f336daaa6960156d6e.tar.gz
volse-hubzilla-f32c6c2ee9a966a38c4ac0f336daaa6960156d6e.tar.bz2
volse-hubzilla-f32c6c2ee9a966a38c4ac0f336daaa6960156d6e.zip
Merge branch 'pull'
Diffstat (limited to 'include')
-rw-r--r--include/acl.js18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/acl.js b/include/acl.js
index 82b631ee9..ba6c6af73 100644
--- a/include/acl.js
+++ b/include/acl.js
@@ -58,7 +58,9 @@ ACL.prototype.on_search = function(event){
}
ACL.prototype.on_showall = function(event){
+ event.preventDefault()
event.stopPropagation();
+
if (that.showall.hasClass("selected")){
return false;
}
@@ -69,12 +71,14 @@ ACL.prototype.on_showall = function(event){
that.deny_cid = [];
that.deny_gid = [];
- that.updateview();
+ that.update_view();
return false;
}
ACL.prototype.on_button_show = function(event){
+ event.preventDefault()
+ event.stopImmediatePropagation()
event.stopPropagation();
/*that.showall.removeClass("selected");
@@ -86,6 +90,8 @@ ACL.prototype.on_button_show = function(event){
return false;
}
ACL.prototype.on_button_hide = function(event){
+ event.preventDefault()
+ event.stopImmediatePropagation()
event.stopPropagation();
/*that.showall.removeClass("selected");
@@ -118,7 +124,7 @@ ACL.prototype.set_allow = function(itemid){
if (that.deny_cid.indexOf(id)>=0) that.deny_cid.remove(id);
break;
}
- that.updateview();
+ that.update_view();
}
ACL.prototype.set_deny = function(itemid){
@@ -142,10 +148,10 @@ ACL.prototype.set_deny = function(itemid){
if (that.allow_cid.indexOf(id)>=0) that.allow_cid.remove(id);
break;
}
- that.updateview();
+ that.update_view();
}
-ACL.prototype.updateview = function(){
+ACL.prototype.update_view = function(){
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");
@@ -153,7 +159,7 @@ ACL.prototype.updateview = function(){
$('#jot-perms-icon').removeClass('lock').addClass('unlock');
$('#jot-public').show();
$('.profile-jot-net input').attr('disabled', false);
- if(editor != false) {
+ if(typeof editor != 'undefined' && editor != false) {
$('#profile-jot-desc').html(ispublic);
}
@@ -235,6 +241,6 @@ ACL.prototype.populate = function(data){
//console.log(html);
that.list_content.append(html);
});
- that.updateview();
+ that.update_view();
}