Use tooltip for background job execution time

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

View File

@ -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')){

View File

@ -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;