diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-10-19 10:29:48 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-10-21 21:10:48 +0200 |
commit | 69f0f17f32d6e50d75e2e004a5b85db42f0de6e8 (patch) | |
tree | 2e49be5d4bcfac1bd692f3d24375b39c4131edad /settings/js/users/groups.js | |
parent | f4004d3ab87006500ac6478ec91affbc40a52657 (diff) | |
download | nextcloud-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.js | 9 |
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); }); |