Fix JavaScript syntax error in nested ternary operators
This commit is contained in:
1 parent
168052ed0c
commit
90ed775883
1 file changed
+2
-5
+2
-5
@@ -1300,8 +1300,7 @@ def jobs():
|
|||||||
</div>
|
</div>
|
||||||
`).join('')}
|
`).join('')}
|
||||||
` : ''}
|
` : ''}
|
||||||
${job.status === 'completed' ? `
|
${job.status === 'completed' ? (job.zip_name ? `
|
||||||
${job.zip_name ? `
|
|
||||||
<p><a href="/download/${job.zip_name}" class="download-btn">Download ZIP</a>
|
<p><a href="/download/${job.zip_name}" class="download-btn">Download ZIP</a>
|
||||||
<form method="post" action="/delete/${jobId}" style="display: inline;">
|
<form method="post" action="/delete/${jobId}" style="display: inline;">
|
||||||
<button type="submit" class="delete-btn" onclick="return confirm('Are you sure you want to delete this job?')">Delete Job</button>
|
<button type="submit" class="delete-btn" onclick="return confirm('Are you sure you want to delete this job?')">Delete Job</button>
|
||||||
@@ -1311,7 +1310,7 @@ def jobs():
|
|||||||
<form method="post" action="/delete/${jobId}" style="display: inline;">
|
<form method="post" action="/delete/${jobId}" style="display: inline;">
|
||||||
<button type="submit" class="delete-btn" onclick="return confirm('Are you sure you want to delete this job?')">Delete Job</button>
|
<button type="submit" class="delete-btn" onclick="return confirm('Are you sure you want to delete this job?')">Delete Job</button>
|
||||||
</form></p>
|
</form></p>
|
||||||
`}
|
` : ''}
|
||||||
${job.skipped ? `
|
${job.skipped ? `
|
||||||
<div class="skipped-section">
|
<div class="skipped-section">
|
||||||
<div class="skipped-toggle" onclick="toggleSkippedDetails(this)">
|
<div class="skipped-toggle" onclick="toggleSkippedDetails(this)">
|
||||||
@@ -1324,8 +1323,6 @@ def jobs():
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
` : ''}
|
` : ''}
|
||||||
` : ''}
|
|
||||||
` : ''}
|
|
||||||
`;
|
`;
|
||||||
jobsContainer.insertBefore(jobDiv, jobsContainer.querySelector('script') || jobsContainer.lastElementChild);
|
jobsContainer.insertBefore(jobDiv, jobsContainer.querySelector('script') || jobsContainer.lastElementChild);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user