diff options
Diffstat (limited to 'settings/js/users/users.js')
-rw-r--r-- | settings/js/users/users.js | 18 |
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' + }); }, /** |