diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-07-13 12:51:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-13 12:51:15 +0200 |
commit | 27ba28880499a385fd1c16f925544baab854dac1 (patch) | |
tree | 059032f2fe1a0baaed741efd19c38553f81f1f28 | |
parent | afef11f84aef91178d5bb566d6e726f969fd69d9 (diff) | |
parent | 3c432a8afe5ae01fabd8e0615b2371060ac89604 (diff) | |
download | nextcloud-server-27ba28880499a385fd1c16f925544baab854dac1.tar.gz nextcloud-server-27ba28880499a385fd1c16f925544baab854dac1.zip |
Merge pull request #386 from nextcloud/use-tooltip-instead-of-tipsy
Use tooltip instead of tipsy
-rw-r--r-- | apps/federatedfilesharing/js/settings-admin.js | 1 | ||||
-rw-r--r-- | settings/js/admin.js | 2 | ||||
-rw-r--r-- | settings/js/apps.js | 24 | ||||
-rw-r--r-- | settings/js/certificates.js | 2 | ||||
-rw-r--r-- | settings/templates/admin.php | 4 |
5 files changed, 24 insertions, 9 deletions
diff --git a/apps/federatedfilesharing/js/settings-admin.js b/apps/federatedfilesharing/js/settings-admin.js index 95578bff548..257c864b04f 100644 --- a/apps/federatedfilesharing/js/settings-admin.js +++ b/apps/federatedfilesharing/js/settings-admin.js @@ -8,5 +8,4 @@ $(document).ready(function() { OC.AppConfig.setValue('files_sharing', $(this).attr('name'), value); }); - $('.section .icon-info').tipsy({gravity: 'w'}); }); diff --git a/settings/js/admin.js b/settings/js/admin.js index 34e258065ce..fb59b3ba026 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -35,7 +35,7 @@ $(document).ready(function(){ } ); }); - $('#backgroundjobs span.crondate').tipsy({gravity: 's', live: true}); + $('#backgroundjobs span.crondate').tooltip({placement: 'top'}); $('#backgroundjobs input').change(function(){ if($(this).is(':checked')){ diff --git a/settings/js/apps.js b/settings/js/apps.js index 525a34d9067..55847162350 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; diff --git a/settings/js/certificates.js b/settings/js/certificates.js index 7e62a4f5157..f73ceea23f3 100644 --- a/settings/js/certificates.js +++ b/settings/js/certificates.js @@ -13,7 +13,7 @@ $(document).ready(function () { return true; }); - $('#sslCertificate tr > td').tipsy({gravity: 'n', live: true}); + $('#sslCertificate tr > td').tooltip({placement: 'bottom', container: 'body'}); $('#rootcert_import').fileupload({ pasteZone: null, diff --git a/settings/templates/admin.php b/settings/templates/admin.php index 93c9dca7153..e5b09089449 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -290,12 +290,12 @@ if ($_['cronErrors']) { $absolute_time = OC_Util::formatDate($_['lastcron']); if (time() - $_['lastcron'] <= 3600): ?> <span class="status success"></span> - <span class="crondate" original-title="<?php p($absolute_time);?>"> + <span class="crondate" title="<?php p($absolute_time);?>"> <?php p($l->t("Last cron job execution: %s.", [$relative_time]));?> </span> <?php else: ?> <span class="status error"></span> - <span class="crondate" original-title="<?php p($absolute_time);?>"> + <span class="crondate" title="<?php p($absolute_time);?>"> <?php p($l->t("Last cron job execution: %s. Something seems wrong.", [$relative_time]));?> </span> <?php endif; |