- that.list_content = $j("#acl-list-content");
- that.item_tpl = unescape($j(".acl-list-item[rel=acl-template]").html());
- that.showall = $j("#acl-showall");
+ that.list_content = $("#acl-list-content");
+ that.item_tpl = unescape($(".acl-list-item[rel=acl-template]").html());
+ that.showall = $("#acl-showall");
- $j(".acl-button-show").live('click', that.on_button_show);
- $j(".acl-button-hide").live('click', that.on_button_hide);
- $j("#acl-search").keypress(that.on_search);
- $j("#acl-wrapper").parents("form").submit(that.on_submit);
+ $(document).on("click", ".acl-button-show", that.on_button_show);
+ $(document).on("click", ".acl-button-hide", that.on_button_hide);
+ $("#acl-search").keypress(that.on_search);
+ $("#acl-wrapper").parents("form").submit(that.on_submit);
- aclfileds = $j("#acl-fields").html("");
- $j(that.allow_gid).each(function(i,v){
+ aclfileds = $("#acl-fields").html("");
+ $(that.allow_gid).each(function(i,v){
aclfileds.append("<input type='hidden' name='contact_deny[]' value='"+v+"'>");
});
}
ACL.prototype.search = function(){
aclfileds.append("<input type='hidden' name='contact_deny[]' value='"+v+"'>");
});
}
ACL.prototype.search = function(){
- $j(this).siblings(".acl-button-hide").removeClass("selected");
- $j(this).toggleClass("selected");*/
+ $(this).siblings(".acl-button-hide").removeClass("selected");
+ $(this).toggleClass("selected");*/
- $j(this).siblings(".acl-button-show").removeClass("selected");
- $j(this).toggleClass("selected");*/
+ $(this).siblings(".acl-button-show").removeClass("selected");
+ $(this).toggleClass("selected");*/
- $j('#jot-perms-icon').removeClass('lock').addClass('unlock');
- $j('#jot-public').show();
- $j('.profile-jot-net input').attr('disabled', false);
+ $('#jot-perms-icon').removeClass('lock').addClass('unlock');
+ $('#jot-public').show();
+ $('.profile-jot-net input').attr('disabled', false);
- $j('#jot-perms-icon').removeClass('unlock').addClass('lock');
- $j('#jot-public').hide();
- $j('.profile-jot-net input').attr('disabled', 'disabled');
- $j('#profile-jot-desc').html(' ');
+ $('#jot-perms-icon').removeClass('unlock').addClass('lock');
+ $('#jot-public').hide();
+ $('.profile-jot-net input').attr('disabled', 'disabled');
+ $('#profile-jot-desc').html(' ');
- $j("#acl-list-content .acl-list-item").each(function(){
- $j(this).removeClass("groupshow grouphide");
+ $("#acl-list-content .acl-list-item").each(function(){
+ $(this).removeClass("groupshow grouphide");
- btshow = $j(this).children(".acl-button-show").removeClass("selected");
- bthide = $j(this).children(".acl-button-hide").removeClass("selected");
+ btshow = $(this).children(".acl-button-show").removeClass("selected");
+ bthide = $(this).children(".acl-button-hide").removeClass("selected");
ACL.prototype.populate = function(data){
/* var height = Math.ceil(data.tot / that.nw) * 42;
that.list_content.height(height);*/
ACL.prototype.populate = function(data){
/* var height = Math.ceil(data.tot / that.nw) * 42;
that.list_content.height(height);*/
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 );
if (this.uids!=undefined) that.group_uids[this.id] = this.uids;
//console.log(html);
that.list_content.append(html);
});
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 );
if (this.uids!=undefined) that.group_uids[this.id] = this.uids;
//console.log(html);
that.list_content.append(html);
});
+ $(".acl-list-item img[data-src]", that.list_content).each(function(i, el){
+ // Add src attribute for images with a data-src attribute
+ $(el).attr('src', $(el).data("src"));
+ });