|
|
|
@ -26,17 +26,18 @@ define(
|
|
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
var result = '<span title="{0}">{1}</span>';
|
|
|
|
|
|
|
|
|
|
if (UiSettings.get('showRelativeDates')) {
|
|
|
|
|
var tooltip = nextExecution.format(UiSettings.longDateTime());
|
|
|
|
|
var text = nextExecution.fromNow();
|
|
|
|
|
var text;
|
|
|
|
|
|
|
|
|
|
this.$el.html(result.format(tooltip, text));
|
|
|
|
|
if (UiSettings.get('showRelativeDates')) {
|
|
|
|
|
text = nextExecution.fromNow();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
this.$el.html(nextExecution.format(UiSettings.longDateTime()));
|
|
|
|
|
text = nextExecution.format(UiSettings.shortDateTime());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$el.html(result.format(tooltip, text));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this;
|
|
|
|
|