diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-06-17 15:11:31 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-06-17 15:11:31 +0200 |
commit | a5a66f38f1cae2b623d95c739e8f8f6087c41af2 (patch) | |
tree | 72c869bdce7400d3ca75b35bd34b778e85761fc7 /settings/js | |
parent | 663459ca26d371731e0bc6409f746ebd7bac11ef (diff) | |
download | nextcloud-server-a5a66f38f1cae2b623d95c739e8f8f6087c41af2.tar.gz nextcloud-server-a5a66f38f1cae2b623d95c739e8f8f6087c41af2.zip |
Fix tooltip position in token list
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/authtoken_view.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index 47e6667925a..b1906f0b338 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -27,9 +27,9 @@ var TEMPLATE_TOKEN = '<tr data-id="{{id}}">' - + '<td><span class="token-name" title="{{name}}">{{name}}</span></td>' - + '<td><span class="last-activity" title="{{lastActivityTime}}">{{lastActivity}}</span></td>' - + '<td><a class="icon-delete" title="' + t('core', 'Disconnect') + '"></a></td>' + + '<td class="has-tooltip" title="{{name}}"><span class="token-name">{{name}}</span></td>' + + '<td><span class="last-activity has-tooltip" title="{{lastActivityTime}}">{{lastActivity}}</span></td>' + + '<td><a class="icon-delete has-tooltip" title="' + t('core', 'Disconnect') + '"></a></td>' + '<tr>'; var SubView = Backbone.View.extend({ @@ -80,9 +80,7 @@ viewData.lastActivityTime = OC.Util.formatDate(ts, 'LLL'); var html = _this.template(viewData); var $html = $(html); - $html.find('.token-name').tooltip(); - $html.find('.last-activity').tooltip(); - $html.find('.icon-delete').tooltip(); + $html.find('.has-tooltip').tooltip({container: 'body'}); list.append($html); }); }, |