slightly improve custom acl selector
This commit is contained in:
parent
be3e0ca9a1
commit
032cbca651
@ -173,7 +173,7 @@ ACL.prototype.on_custom = function(event) {
|
||||
that.deny_cid = [];
|
||||
that.deny_gid = [];
|
||||
|
||||
datasrc2src('#acl-list-content .acl-list-item img[data-src]');
|
||||
datasrc2src('#acl-list-content .list-group-item img[data-src]');
|
||||
|
||||
that.update_view('custom');
|
||||
that.on_submit();
|
||||
@ -399,7 +399,7 @@ ACL.prototype.get = function(start, count, search) {
|
||||
|
||||
ACL.prototype.populate = function(data) {
|
||||
$(data.items).each(function(){
|
||||
html = "<div class='acl-list-item {4} {7} {5}' title='{6}' id='{2}{3}'>"+that.item_tpl+"</div>";
|
||||
html = "<div class='list-group-item clearfix {4} {7} {5}' id='{2}{3}'>"+that.item_tpl+"</div>";
|
||||
html = html.format(this.photo, this.name, this.type, this.xid, '', this.self, this.link, this.taggable);
|
||||
if (this.uids !== undefined) {
|
||||
that.group_uids[this.xid] = this.uids;
|
||||
|
@ -842,15 +842,6 @@ div.jGrowl div.jGrowl-notification {
|
||||
font-family: ForkAwesome, sans-serif, arial, freesans;
|
||||
}
|
||||
|
||||
.acl-list-item {
|
||||
width: 100%;
|
||||
padding: 0.5rem;
|
||||
margin-bottom: 0.5rem;
|
||||
border: 1px solid #ccc;
|
||||
float: left;
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
||||
.acl-item-header {
|
||||
width: 100%;
|
||||
}
|
||||
|
@ -37,9 +37,11 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="acl-list-item" rel="acl-template" style="display:none">
|
||||
<div class="acl-list-item list-group-item" rel="acl-template" style="display:none">
|
||||
<div class="acl-item-header">
|
||||
<img class="menu-img-1" data-src="{0}"> {1}
|
||||
<img class="menu-img-3" data-src="{0}">
|
||||
<span class="contactname">{1}</span>
|
||||
<span class="dropdown-sub-text">{6}</span>
|
||||
</div>
|
||||
<button class="acl-button-hide btn btn-sm btn-outline-danger"><i class="fa fa-times"></i> {{$hide}}</button>
|
||||
<button class="acl-button-show btn btn-sm btn-outline-success"><i class="fa fa-check"></i> {{$show}}</button>
|
||||
|
Reference in New Issue
Block a user