mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix scheduled task time limit key
This commit is contained in:
parent
b13b1ff76d
commit
56bab2fb0f
1 changed files with 3 additions and 3 deletions
|
@ -57,13 +57,13 @@ const ScheduledTaskPage = {
|
||||||
|
|
||||||
html += '<div class="listItem listItem-border">';
|
html += '<div class="listItem listItem-border">';
|
||||||
html += '<span class="material-icons listItemIcon schedule" aria-hidden="true"></span>';
|
html += '<span class="material-icons listItemIcon schedule" aria-hidden="true"></span>';
|
||||||
if (trigger.MaxRuntimeMs) {
|
if (trigger.MaxRuntimeTicks) {
|
||||||
html += '<div class="listItemBody two-line">';
|
html += '<div class="listItemBody two-line">';
|
||||||
} else {
|
} else {
|
||||||
html += '<div class="listItemBody">';
|
html += '<div class="listItemBody">';
|
||||||
}
|
}
|
||||||
html += "<div class='listItemBodyText'>" + ScheduledTaskPage.getTriggerFriendlyName(trigger) + '</div>';
|
html += "<div class='listItemBodyText'>" + ScheduledTaskPage.getTriggerFriendlyName(trigger) + '</div>';
|
||||||
if (trigger.MaxRuntimeMs) {
|
if (trigger.MaxRuntimeTicks) {
|
||||||
html += '<div class="listItemBodyText secondary">';
|
html += '<div class="listItemBodyText secondary">';
|
||||||
const hours = trigger.MaxRuntimeTicks / 36e9;
|
const hours = trigger.MaxRuntimeTicks / 36e9;
|
||||||
if (hours == 1) {
|
if (hours == 1) {
|
||||||
|
@ -201,7 +201,7 @@ const ScheduledTaskPage = {
|
||||||
let timeLimit = $('#txtTimeLimit', page).val() || '0';
|
let timeLimit = $('#txtTimeLimit', page).val() || '0';
|
||||||
timeLimit = parseFloat(timeLimit) * 3600000;
|
timeLimit = parseFloat(timeLimit) * 3600000;
|
||||||
|
|
||||||
trigger.MaxRuntimeMs = timeLimit || null;
|
trigger.MaxRuntimeTicks = timeLimit * 1e4 || null;
|
||||||
|
|
||||||
return trigger;
|
return trigger;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue