Formatting for error messages

This commit is contained in:
TwistedUmbrellaX 2024-10-22 19:13:33 -04:00 committed by TwistedUmbrellaX
parent 50ac67113a
commit 38bc136088

View File

@ -519,12 +519,13 @@
</div> </div>
<div id="timestampErrorDiv" style="display: none"> <div id="timestampErrorDiv" style="display: none">
<br />
<textarea id="timestampError" rows="2" cols="75" readonly></textarea> <textarea id="timestampError" rows="2" cols="75" readonly></textarea>
<br /> <br />
<br /> <br />
</div> </div>
<div id="fingerprintVisualizer"> <div id="fingerprintVisualizer" style="display: none">
<h3>Fingerprint Visualizer</h3> <h3>Fingerprint Visualizer</h3>
<p> <p>
@ -563,19 +564,19 @@
<input type="number" min="-3000" max="3000" value="0" id="offset" /> <input type="number" min="-3000" max="3000" value="0" id="offset" />
<br /> <br />
<span id="suggestedShifts"> <span id="suggestedShifts">
<span>Suggested shifts:</span> <span>Suggested shifts: </span>
<br />
<br />
</span> </span>
<br />
<br />
<canvas id="troubleshooter" style="display: none"></canvas> <canvas id="troubleshooter" style="display: none"></canvas>
<span id="timestampContainer"> <span id="timestampContainer">
<span id="timestamps"></span> <br /> <span id="timestamps"></span>
<br />
<span id="intros"></span> <span id="intros"></span>
</span> </span>
<br />
</div> </div>
<br /> <br />
<br />
<div id="eraseSeasonContainer" style="display: none"> <div id="eraseSeasonContainer" style="display: none">
<button is="emby-button" id="btnEraseSeasonTimestamps" class="button-submit emby-button" type="button">Erase all timestamps for this season</button> <button is="emby-button" id="btnEraseSeasonTimestamps" class="button-submit emby-button" type="button">Erase all timestamps for this season</button>
@ -1028,7 +1029,7 @@
if (lhs === undefined) { if (lhs === undefined) {
timestampError.value += "Error: " + selectEpisode1.value + " fingerprints failed!\n"; timestampError.value += "Error: " + selectEpisode1.value + " fingerprints failed!\n";
} else if (lhs === null) { } else if (lhs === null) {
timestampError.value += "Error: " + selectEpisode1.value + " fingerprints missing!\n"; timestampError.value += selectEpisode1.value + " fingerprints missing or incomplete.\n";
} }
rightEpisodeEditor.style.display = "unset"; rightEpisodeEditor.style.display = "unset";
@ -1037,7 +1038,7 @@
if (rhs === undefined) { if (rhs === undefined) {
timestampError.value += "Error: " + selectEpisode2.value + " fingerprints failed!"; timestampError.value += "Error: " + selectEpisode2.value + " fingerprints failed!";
} else if (rhs === null) { } else if (rhs === null) {
timestampError.value += "Error: " + selectEpisode2.value + " fingerprints missing!\n"; timestampError.value += selectEpisode2.value + " fingerprints missing or incomplete.\n";
} }
if (timestampError.value == "") { if (timestampError.value == "") {
@ -1071,7 +1072,7 @@
if (lhs === undefined) { if (lhs === undefined) {
timestampError.value += "Error: " + selectShow.value + " fingerprints failed!\n"; timestampError.value += "Error: " + selectShow.value + " fingerprints failed!\n";
} else if (lhs === null) { } else if (lhs === null) {
timestampError.value += "Error: " + selectShow.value + " fingerprints missing!\n"; timestampError.value += selectShow.value + " fingerprints missing or incomplete.\n";
} }
rightEpisodeEditor.style.display = "none"; rightEpisodeEditor.style.display = "none";