From e9eb94e8995f5c845868bd4e099f8eb591204943 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 13 Jul 2016 09:59:08 +0200 Subject: [PATCH] Use tooltip for app management badges --- settings/js/apps.js | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/settings/js/apps.js b/settings/js/apps.js index 525a34d906..5584716235 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -119,11 +119,27 @@ OC.Settings.Apps = OC.Settings.Apps || { $('#apps-list-empty').removeClass('hidden').find('h2').text(t('settings', 'No apps found for your version')); } - $('.enable.needs-download').tipsy({fallback: t('settings', 'The app will be downloaded from the app store')}); + $('.enable.needs-download').tooltip({ + title: t('settings', 'The app will be downloaded from the app store'), + placement: 'bottom', + container: 'body' + }); - $('.app-level .official').tipsy({fallback: t('settings', 'Official apps are developed by and within the community. They offer central functionality and are ready for production use.')}); - $('.app-level .approved').tipsy({fallback: t('settings', 'Approved apps are developed by trusted developers and have passed a cursory security check. They are actively maintained in an open code repository and their maintainers deem them to be stable for casual to normal use.')}); - $('.app-level .experimental').tipsy({fallback: t('settings', 'This app is not checked for security issues and is new or known to be unstable. Install at your own risk.')}); + $('.app-level .official').tooltip({ + title: t('settings', 'Official apps are developed by and within the community. They offer central functionality and are ready for production use.'), + placement: 'bottom', + container: 'body' + }); + $('.app-level .approved').tooltip({ + title: t('settings', 'Approved apps are developed by trusted developers and have passed a cursory security check. They are actively maintained in an open code repository and their maintainers deem them to be stable for casual to normal use.'), + placement: 'bottom', + container: 'body' + }); + $('.app-level .experimental').tooltip({ + title: t('settings', 'This app is not checked for security issues and is new or known to be unstable. Install at your own risk.'), + placement: 'bottom', + container: 'body' + }); }, complete: function() { var availableUpdates = 0;