Browse Source

059 User edit Autorisations est masqué quand inutile

pull/7/head
Fred Tempez 2 years ago
parent
commit
179c1b5ca0
  1. 2
      core/core.php
  2. 5
      core/module/user/view/edit/edit.js.php
  3. 2
      core/module/user/view/edit/edit.php

2
core/core.php

@ -37,7 +37,7 @@ class common {
const THUMBS_WIDTH = 320;
// Numéro de version
const ZWII_VERSION = '10.0.058';
const ZWII_VERSION = '10.0.059';
const ZWII_UPDATE_CHANNEL = "v10";
public static $actions = [];

5
core/module/user/view/edit/edit.js.php

@ -16,4 +16,9 @@
$("#userEditGroup").on("change", function() {
$(".userEditGroupDescription").hide();
$("#userEditGroupDescription" + $(this).val()).show();
if ($("#userEditGroup option:selected").val() < 0) {
$("#userEditLabelAuth").css("display","none");
} else {
$("#userEditLabelAuth").css("display","inline-block");
}
}).trigger("change");

2
core/module/user/view/edit/edit.php

@ -53,7 +53,7 @@
'label' => 'Groupe',
'selected' => $this->getData(['user', $this->getUrl(2), 'group'])
]); ?>
Autorisations :
<div id="userEditLabelAuth">Autorisations :</div>
<ul id="userEditGroupDescription<?php echo self::GROUP_MEMBER; ?>" class="userEditGroupDescription displayNone">
<li>Accès aux pages privées membres</li>
</ul>

Loading…
Cancel
Save