diff options
author | Björn Schießle <bjoern@schiessle.org> | 2016-12-06 17:10:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 17:10:00 +0100 |
commit | 0b0f27358f67382f4c45f469db50de8f17f72bce (patch) | |
tree | f441c2124f598d99fa81533be98113289ec0abfb | |
parent | b1901534be20ab768c4f5dccaa5c7c81fb472aa8 (diff) | |
parent | ab993ad486ac4e85725d841b3aec2edd39cab694 (diff) | |
download | nextcloud-server-0b0f27358f67382f4c45f469db50de8f17f72bce.tar.gz nextcloud-server-0b0f27358f67382f4c45f469db50de8f17f72bce.zip |
Merge pull request #2532 from nextcloud/token-dropdown
Fix apppassword dropdown issues
-rw-r--r-- | settings/css/settings.css | 5 | ||||
-rw-r--r-- | settings/js/authtoken_view.js | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/settings/css/settings.css b/settings/css/settings.css index 3f23fb6680d..a280fa5d10e 100644 --- a/settings/css/settings.css +++ b/settings/css/settings.css @@ -263,6 +263,11 @@ table.nostyle td { padding: 0.2em 0; } padding: 10px; } +#sessions .token-list div.configure:after, +#apppasswords .token-list div.configure:after { + right: 13px; +} + #sessions .token-list tr.active div.configure > *, #apppasswords .token-list tr.active div.configure > *{ margin-top: 5px; diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index 0899b723b2a..a81e05cb3ed 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -217,6 +217,10 @@ })); var $el = $(el); + $('body').on('click', _.bind(_this._hideConfigureToken, _this)); + $el.on('click', '.popovermenu', function(event) { + event.stopPropagation(); + }); $el.on('click', 'a.icon-delete', _.bind(_this._onDeleteToken, _this)); $el.on('click', '.icon-more', _.bind(_this._onConfigureToken, _this)); $el.on('change', 'input.filesystem', _.bind(_this._onSetTokenScope, _this)); @@ -355,12 +359,18 @@ }, _onConfigureToken: function (event) { + event.stopPropagation(); + this._hideConfigureToken(); var $target = $(event.target); var $row = $target.closest('tr'); $row.toggleClass('active'); var id = $row.data('id'); }, + _hideConfigureToken: function() { + $('.token-list tr').removeClass('active'); + }, + _onDeleteToken: function (event) { var $target = $(event.target); var $row = $target.closest('tr'); |