diff options
author | raghunayyar <me@iraghu.com> | 2014-02-27 02:01:50 +0530 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-06-02 12:53:54 +0200 |
commit | b6b133237ae4624b81a2a4c86cd237a0ce70afd8 (patch) | |
tree | 8922a9afa8e384a4fe6ebf3ed7bd5624d0f87ee3 /settings | |
parent | cfba7e20cf1395ec3044b5ed8368536f2155b1fa (diff) | |
download | nextcloud-server-b6b133237ae4624b81a2a4c86cd237a0ce70afd8.tar.gz nextcloud-server-b6b133237ae4624b81a2a4c86cd237a0ce70afd8.zip |
Initial Commit with Group Toggle.
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users/groups.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/settings/js/users/groups.js b/settings/js/users/groups.js index e5d83b03775..fcb173de80a 100644 --- a/settings/js/users/groups.js +++ b/settings/js/users/groups.js @@ -148,7 +148,6 @@ } }, - } $(document).ready( function () { @@ -231,11 +230,15 @@ $(document).ready( function () { // Implements Quota Settings Toggle. $('#app-navigation').find('.settings-button').on('click', function (e) { + $('.settings-button').addClass('opened'); + var settings = $('#app-settings'); e.stopPropagation(); - $('#app-settings').removeClass('open'); - $('#app-settings').toggleClass('open'); - $(document).click(function() { - $('#app-settings').removeClass('open'); - }); + settings.animate({height: "100px"}); + $('#app-settings-content').css('display', 'block'); + $(document).click(function (e) { + if (!settings.is(e.target) && settings.has(e.target).length === 0) { + settings.animate({height: "45px"}); + } + }); }); });
\ No newline at end of file |