059 User edit Autorisations est masqué quand inutile

This commit is contained in:
Fred Tempez 2020-04-07 17:15:13 +02:00
parent 4e27765e12
commit 179c1b5ca0
3 changed files with 7 additions and 2 deletions

View File

@ -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 = [];

View File

@ -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");

View File

@ -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>