From a8e686d59b5aa737a55e3abcc5a7faf436f7f455 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 14 Jul 2018 11:09:14 +0200 Subject: [PATCH] Can update the virtual directory of a group --- assets/js/pages/groups/pages/settings.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/assets/js/pages/groups/pages/settings.js b/assets/js/pages/groups/pages/settings.js index cb108528..bd722283 100644 --- a/assets/js/pages/groups/pages/settings.js +++ b/assets/js/pages/groups/pages/settings.js @@ -121,6 +121,15 @@ ComunicWeb.pages.groups.pages.settings = { + //Group virtual directory + var virtualDirectory = createFormGroup({ + target: formContainer, + type: "text", + label: "Virtual directory", + placeholder: "Virtual directory of the group", + value: settings.virtual_directory == "null" ? "" : settings.virtual_directory, + }); + //Group visibility var visibilityForm = createElem2({ @@ -247,6 +256,7 @@ ComunicWeb.pages.groups.pages.settings = { //Prepare the update request on the server var settings = { name: groupName.value, + virtual_directory: virtualDirectory.value, visibility: visibilityForm.elements["group-visibility"].value, registration_level: registrationLevelForm.elements["group-registration-level"].value };