remove the add others button for now - after some research it turned out not beeing so useful

This commit is contained in:
Mario Vavti 2016-05-25 14:31:58 +02:00
parent c37eaff263
commit 9908a7193a
3 changed files with 0 additions and 9 deletions

View File

@ -266,7 +266,6 @@ function populate_acl($defaults = null,$show_jotnets = true, $emptyACL_descripti
$o = replace_macros($tpl, array( $o = replace_macros($tpl, array(
'$showall' => $showall_caption, '$showall' => $showall_caption,
'$onlyme' => t('Only me'), '$onlyme' => t('Only me'),
'$add_others' => t('Add others'),
'$showallOrigin' => $showall_origin, '$showallOrigin' => $showall_origin,
'$showallIcon' => $showall_icon, '$showallIcon' => $showall_icon,
'$select_label' => t('Who can see this?'), '$select_label' => t('Who can see this?'),

View File

@ -20,7 +20,6 @@ function ACL(backend_url, preset) {
that.onlyme = $("#acl-onlyme"); that.onlyme = $("#acl-onlyme");
that.showlimited = $("#acl-showlimited"); that.showlimited = $("#acl-showlimited");
that.acl_select = $("#acl-select"); that.acl_select = $("#acl-select");
that.showacl = $("#show-acl");
that.preset = preset; that.preset = preset;
that.self = []; that.self = [];
@ -250,7 +249,6 @@ ACL.prototype.update_view = function(value) {
if (that.allow_gid.length === 0 && that.allow_cid.length === 0 && that.deny_gid.length === 0 && that.deny_cid.length === 0) { if (that.allow_gid.length === 0 && that.allow_cid.length === 0 && that.deny_gid.length === 0 && that.deny_cid.length === 0) {
that.list.hide(); //hide acl-list that.list.hide(); //hide acl-list
that.showacl.hide(); //hide showacl button
that.info.show(); //show acl-info that.info.show(); //show acl-info
that.update_select('public'); that.update_select('public');
@ -263,7 +261,6 @@ ACL.prototype.update_view = function(value) {
// if value != 'onlyme' we should fall through this one // if value != 'onlyme' we should fall through this one
else if (that.allow_gid.length === 0 && that.allow_cid.length === 1 && that.allow_cid[0] === that.self[0] && that.deny_gid.length === 0 && that.deny_cid.length === 0 && value === 'onlyme') { else if (that.allow_gid.length === 0 && that.allow_cid.length === 1 && that.allow_cid[0] === that.self[0] && that.deny_gid.length === 0 && that.deny_cid.length === 0 && value === 'onlyme') {
that.list.hide(); //hide acl-list if that.list.hide(); //hide acl-list if
that.showacl.show(); //show showacl button
that.info.hide(); //show acl-info that.info.hide(); //show acl-info
that.update_select('onlyme'); that.update_select('onlyme');
@ -274,7 +271,6 @@ ACL.prototype.update_view = function(value) {
else { else {
that.list.show(); //show acl-list that.list.show(); //show acl-list
that.showacl.hide(); //hide showacl button
that.info.hide(); //hide acl-info that.info.hide(); //hide acl-info
that.update_select('limited'); that.update_select('limited');

View File

@ -19,10 +19,6 @@
<option id="acl-showlimited" value="limited">{{$showlimited}}</option> <option id="acl-showlimited" value="limited">{{$showlimited}}</option>
</select> </select>
<div id="show-acl" class="form-group">
<button type="button" class="btn btn-success form-group" onclick="openClose('acl-list'); closeOpen('show-acl');"><i class="fa fa-user-plus"></i>&nbsp;{{$add_others}}</button>
</div>
{{if $showallOrigin}} {{if $showallOrigin}}
<div id="acl-info" class="form-group"> <div id="acl-info" class="form-group">
<i class="fa fa-info-circle"></i>&nbsp;{{$showallOrigin}} <i class="fa fa-info-circle"></i>&nbsp;{{$showallOrigin}}