summaryrefslogtreecommitdiffstats
path: root/settings/js/users
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-02-23 12:04:00 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-02-27 12:50:18 +0100
commitbb5d4c8c21d339057c45e5f244d944157065b26f (patch)
treee0c7d8cd3a8be4515c5f4f70ac72672c240969fa /settings/js/users
parent7f6b27aef7a3fd696a3836964bf0592e3ffe9d00 (diff)
downloadnextcloud-server-bb5d4c8c21d339057c45e5f244d944157065b26f.tar.gz
nextcloud-server-bb5d4c8c21d339057c45e5f244d944157065b26f.zip
Changed button types and do not hide form on outside click
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/js/users')
-rw-r--r--settings/js/users/users.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 58c15cf1c93..d00423a99f3 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -32,13 +32,17 @@ var UserList = {
// initially the list might already contain user entries (not fully ajaxified yet)
// initialize these entries
this.$el.find('.quota-user').singleSelect().on('change', this.onQuotaSelect);
- OC.registerMenu(
- $('#new-user-button'),
- $('#newuserHeader'),
- function() {
- $('#newusername').focus();
- }
- );
+ $('#new-user-button').on('click', function(event) {
+ event.preventDefault();
+ $('#newuserHeader').slideToggle(OC.menuSpeed);
+ $('#newusername').focus();
+ });
+ $('#newreset').on('click', function(event) {
+ $('#newuserHeader').slideToggle(OC.menuSpeed);
+ });
+ $('.has-tooltip').tooltip({
+ placement: 'bottom'
+ });
},
/**