From: raghunayyar Date: Thu, 6 Mar 2014 07:57:29 +0000 (+0530) Subject: Enhancement: Adding Group on the Sidebar updates the multiselect on the Userlist. X-Git-Tag: v7.0.0alpha2~144^2~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d3cee79b5a75f6257250e124b975ea046f396703;p=nextcloud-server.git Enhancement: Adding Group on the Sidebar updates the multiselect on the Userlist. --- diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js index b666ad5e74b..0180cb64898 100644 --- a/settings/js/users/groups.js +++ b/settings/js/users/groups.js @@ -55,6 +55,19 @@ var addedGroups = result.data.groupname; UserList.availableGroups = $.unique($.merge(UserList.availableGroups, addedGroups)); GroupList.addGroup(result.data.groupname); + + $('#newusergroups').children().first().attr('value', result.data.groupname); + $('#newusergroups').children().first().text(result.data.groupname); + + $('.groupsselect').each( function (index, element) { + $(element).children().first().attr('value', result.data.groupname); + $(element).children().first().text(result.data.groupname); + }); + + $('.subadminsselect').each( function (index, element) { + $(element).children().first().attr('value', result.data.groupname); + $(element).children().first().text(result.data.groupname); + }); } GroupList.toggleAddGroup(); } @@ -124,7 +137,7 @@ initDeleteHandling: function() { //set up handler GroupDeleteHandler = new DeleteHandler('removegroup.php', 'groupname', - GroupList.hide, GroupList.remove); + GroupList.hide, GroupList.remove); //configure undo OC.Notification.hide(); diff --git a/settings/templates/users/part.createuser.php b/settings/templates/users/part.createuser.php index e52f0da0b36..73799ff5d5b 100644 --- a/settings/templates/users/part.createuser.php +++ b/settings/templates/users/part.createuser.php @@ -1,16 +1,18 @@
- + - + - + diff --git a/settings/templates/users/part.userlist.php b/settings/templates/users/part.userlist.php index 989d5f362c4..17105b6e59d 100644 --- a/settings/templates/users/part.userlist.php +++ b/settings/templates/users/part.userlist.php @@ -33,32 +33,34 @@ src="" alt="t("set new password"))?>" title="t("set new password"))?>"/> - + + - - + + +