Use tooltip for app management badges

This commit is contained in:
Morris Jobke 2016-07-13 09:59:08 +02:00
parent 2b86f1e677
commit e9eb94e899
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
1 changed files with 20 additions and 4 deletions

View File

@ -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')); $('#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 .official').tooltip({
$('.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.')}); title: t('settings', 'Official apps are developed by and within the community. They offer central functionality and are ready for production 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.')}); 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() { complete: function() {
var availableUpdates = 0; var availableUpdates = 0;