Use tooltip for background job execution time
This commit is contained in:
parent
e9eb94e899
commit
cf79417490
|
@ -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(){
|
$('#backgroundjobs input').change(function(){
|
||||||
if($(this).is(':checked')){
|
if($(this).is(':checked')){
|
||||||
|
|
|
@ -290,12 +290,12 @@ if ($_['cronErrors']) {
|
||||||
$absolute_time = OC_Util::formatDate($_['lastcron']);
|
$absolute_time = OC_Util::formatDate($_['lastcron']);
|
||||||
if (time() - $_['lastcron'] <= 3600): ?>
|
if (time() - $_['lastcron'] <= 3600): ?>
|
||||||
<span class="status success"></span>
|
<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]));?>
|
<?php p($l->t("Last cron job execution: %s.", [$relative_time]));?>
|
||||||
</span>
|
</span>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<span class="status error"></span>
|
<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]));?>
|
<?php p($l->t("Last cron job execution: %s. Something seems wrong.", [$relative_time]));?>
|
||||||
</span>
|
</span>
|
||||||
<?php endif;
|
<?php endif;
|
||||||
|
|
Loading…
Reference in New Issue