Aevann1 2022-11-20 18:55:26 +02:00
parent f62a9769fd
commit 0baa32e6eb
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ function ghost_toggle(t) {
function checkRepost() {
const system = document.getElementById('system')
system.innerHTML = `To post an image, use a direct image link such as i.imgur.com`;
system.innerHTML = "";
const url = document.getElementById('post-url').value
const min_repost_check = 9;
@ -185,7 +185,7 @@ function checkRepost() {
const permalinkText = escapeHTML(data["permalink"]);
const permalinkURI = encodeURI(data["permalink"]);
if (permalinkText) {
system.innerHTML = `<span class="text-danger">This is a repost of <a href="${permalinkURI}">${permalinkText}</a></span>`;
system.innerHTML = `This is a repost of <a href="${permalinkURI}">${permalinkText}</a>`;
}
}
}

View File

@ -48,7 +48,7 @@
<div id="urlblock">
<label for="URL" class="mt-3">URL</label>
<input autocomplete="off" class="form-control" id="post-url" aria-describedby="URLHelp" name="url" type="url" placeholder="Optional if you have text." value="{{request.values.get('url','')}}" required oninput="checkForRequired();hide_image();savetext();checkRepost(){% if SITE_NAME != 'PCM' %};autoSuggestTitle(){% endif %}">
<small id="system" class="form-text text-muted">To post an image, use a direct image link such as i.imgur.com</small>
<small id="system" class="form-text text-danger"></small>
</div>
<div id="image-upload-block">
<div><label class="mt-3">Attachment Upload</label></div>