aboutsummaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorHendrik Leppelsack <hendrik@leppelsack.de>2015-08-07 14:00:44 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-08-12 23:09:49 +0200
commite5444a1a5d888e4665cfa0d724fcac1d999071fe (patch)
treeb769f639076e64c5a0b4983cca81e5cbde699845 /settings
parent326de6f9b4473f68e4c0237f0b6fb43111cda0c5 (diff)
downloadnextcloud-server-e5444a1a5d888e4665cfa0d724fcac1d999071fe.tar.gz
nextcloud-server-e5444a1a5d888e4665cfa0d724fcac1d999071fe.zip
replace tipsys with tooltips
Diffstat (limited to 'settings')
-rw-r--r--settings/js/users/users.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/settings/js/users/users.js b/settings/js/users/users.js
index 6f29d6fe25b..4e686a6db8f 100644
--- a/settings/js/users/users.js
+++ b/settings/js/users/users.js
@@ -77,6 +77,9 @@ var UserList = {
$tr.find('.name').text(user.name);
$tr.find('td.displayName > span').text(user.displayname);
$tr.find('td.mailAddress > span').text(user.email);
+ $tr.find('td.displayName > .action').tooltip({placement: 'top'});
+ $tr.find('td.mailAddress > .action').tooltip({placement: 'top'});
+ $tr.find('td.password > .action').tooltip({placement: 'top'});
/**
* groups and subadmins
@@ -158,12 +161,9 @@ var UserList = {
}
var $tdLastLogin = $tr.find('td.lastLogin');
$tdLastLogin.text(lastLoginRel);
- //tooltip makes it complicated … to not insert new HTML, we adjust the
- //original title. We use a temporary div to get back the html that we
- //can pass later. It is also required to initialise tipsy.
- var tooltip = $('<div>').html($($tdLastLogin.attr('original-title')).text(lastLoginAbs)).html();
- $tdLastLogin.tipsy({gravity:'s', html:true});
- $tdLastLogin.attr('title', tooltip);
+ $tdLastLogin.attr('title', lastLoginAbs);
+ // setup tooltip with #app-content as container to prevent the td to resize on hover
+ $tdLastLogin.tooltip({placement: 'top', container: '#app-content'});
/**
* append generated row to user list