summaryrefslogtreecommitdiffstats
path: root/settings/js/users/groups.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-10-19 10:29:48 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-10-21 21:10:48 +0200
commit69f0f17f32d6e50d75e2e004a5b85db42f0de6e8 (patch)
tree2e49be5d4bcfac1bd692f3d24375b39c4131edad /settings/js/users/groups.js
parentf4004d3ab87006500ac6478ec91affbc40a52657 (diff)
downloadnextcloud-server-69f0f17f32d6e50d75e2e004a5b85db42f0de6e8.tar.gz
nextcloud-server-69f0f17f32d6e50d75e2e004a5b85db42f0de6e8.zip
Edit form to guidelines
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/js/users/groups.js')
-rw-r--r--settings/js/users/groups.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js
index 073551c0d8e..4037ab4b893 100644
--- a/settings/js/users/groups.js
+++ b/settings/js/users/groups.js
@@ -235,14 +235,12 @@ GroupList = {
if (event) {
event.stopPropagation();
}
- $('#newgroup-form').show();
- $('#newgroup-init').hide();
- $('#newgroupname').focus();
+ $('#newgroup-entry').addClass('editing');
+ $('#newgroupname').select();
GroupList.handleAddGroupInput('');
}
else {
- $('#newgroup-form').hide();
- $('#newgroup-init').show();
+ $('#newgroup-entry').removeClass('editing');
$('#newgroupname').val('');
}
},
@@ -340,7 +338,6 @@ $(document).ready( function () {
}
// Display or hide of Create Group List Element
- $('#newgroup-form').hide();
$('#newgroup-init').on('click', function (e) {
GroupList.toggleAddGroup(e);
});