aboutsummaryrefslogtreecommitdiffstats
path: root/js/acl.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-12-07 13:35:45 -0800
committerfriendica <info@friendica.com>2012-12-07 13:35:45 -0800
commit1079c10fa49326e2396685577a4d31faeb174625 (patch)
treee607b7a0dfdb5c3fff55ed3f20a433d9d35621f2 /js/acl.js
parentc2c048dc59b4d43a7fdaf15d954df712cfc7c3ee (diff)
downloadvolse-hubzilla-1079c10fa49326e2396685577a4d31faeb174625.tar.gz
volse-hubzilla-1079c10fa49326e2396685577a4d31faeb174625.tar.bz2
volse-hubzilla-1079c10fa49326e2396685577a4d31faeb174625.zip
progress on the acl selector - it should mostly work, but the returned data isn't yet parsed correctly in mod_item
Diffstat (limited to 'js/acl.js')
-rw-r--r--js/acl.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/acl.js b/js/acl.js
index e383224ca..3eb6a65a4 100644
--- a/js/acl.js
+++ b/js/acl.js
@@ -105,7 +105,7 @@ ACL.prototype.on_button_hide = function(event){
ACL.prototype.set_allow = function(itemid){
type = itemid[0];
- id = parseInt(itemid.substr(1));
+ id = itemid.substr(1);
switch(type){
case "g":
if (that.allow_gid.indexOf(id)<0){
@@ -129,7 +129,7 @@ ACL.prototype.set_allow = function(itemid){
ACL.prototype.set_deny = function(itemid){
type = itemid[0];
- id = parseInt(itemid.substr(1));
+ id = itemid.substr(1);
switch(type){
case "g":
if (that.deny_gid.indexOf(id)<0){
@@ -178,7 +178,7 @@ ACL.prototype.update_view = function(){
$("#acl-list-content .acl-list-item").each(function(){
itemid = $(this).attr('id');
type = itemid[0];
- id = parseInt(itemid.substr(1));
+ id = itemid.substr(1);
btshow = $(this).children(".acl-button-show").removeClass("selected");
bthide = $(this).children(".acl-button-hide").removeClass("selected");
@@ -248,7 +248,7 @@ ACL.prototype.populate = function(data){
that.list_content.height(height);
$(data.items).each(function(){
html = "<div class='acl-list-item {4} {5}' title='{6}' id='{2}{3}'>"+that.item_tpl+"</div>";
- html = html.format( this.photo, this.name, this.type, this.id, '', this.network, this.link );
+ html = html.format( this.photo, this.name, this.type, this.xid, '', this.network, this.link );
if (this.uids!=undefined) that.group_uids[this.id] = this.uids;
//console.log(html);
that.list_content.append(html);