This commit is contained in:
Daniel Maya 2023-11-29 15:32:46 +01:00
parent e7ad23c477
commit 0d285802b1
3 changed files with 5 additions and 5 deletions

View File

@ -43,14 +43,14 @@ function update_dashboard(data) {
*/
// eslint-disable-next-line no-unused-vars
function showGroup() {
$("#li-group").removeClass("hidden");
$("#li-group_form").removeClass("hidden");
var private = $("#private").prop("checked");
if (private) {
$("#id_group").removeAttr("required");
$("#li-group").hide();
$("#li-group_form").hide();
} else {
$("#id_group").attr("required", true);
$("#li-group").show();
$("#li-group_form").show();
}
}

View File

@ -255,7 +255,7 @@ ul.wizard li > textarea {
}
.hidden {
display: none;
display: none !important;
}
form.modal-dashboard ul.wizard li.hidden,

View File

@ -84,7 +84,7 @@ $inputs = [
],
],
[
'block_id' => 'group',
'block_id' => 'group_form',
'direct' => 1,
'hidden' => $private,
'block_content' => [