This commit is contained in:
Aevann1 2022-01-16 07:26:34 +02:00
parent f4bc616394
commit e763df55cd
14 changed files with 18 additions and 18 deletions

View file

@ -82,7 +82,7 @@ function awardModal(link) {
function bruh(kind) {
document.getElementById('giveaward').disabled=false;
document.getElementById('kind').value=kind;
try {document.getElementsByClassName('picked')[0].classList.toggle('picked');} catch(e) {}
try {document.getElementsByClassName('picked')[0].classList.toggle('picked');} catch(e) {console.log(e)}
document.getElementById(kind).classList.toggle('picked')
if (kind == "flairlock") {
document.getElementById('notelabel').innerHTML = "New flair:";

View file

@ -28,7 +28,7 @@ function post_toast3(url, button1, button2) {
xhr.onload = function() {
let data
try {data = JSON.parse(xhr.response)}
catch(e) {}
catch(e) {console.log(e)}
if (xhr.status >= 200 && xhr.status < 300 && data && data["message"]) {
document.getElementById('toast-post-success-text').innerText = data["message"];
new bootstrap.Toast(document.getElementById('toast-post-success')).show();
@ -130,7 +130,7 @@ function post_reply(id){
let data = JSON.parse(xhr.response)
document.getElementById('toast-post-error-text').innerText = data["error"];
}
catch(e) {}
catch(e) {console.log(e)}
new bootstrap.Toast(document.getElementById('toast-post-error')).show();
}
}
@ -160,7 +160,7 @@ function comment_edit(id){
let data = JSON.parse(xhr.response)
document.getElementById('toast-post-error-text').innerText = data["error"];
}
catch(e) {}
catch(e) {console.log(e)}
new bootstrap.Toast(document.getElementById('toast-post-error')).show();
}
}
@ -194,7 +194,7 @@ function post_comment(fullname){
let data = JSON.parse(xhr.response)
document.getElementById('toast-post-error-text').innerText = data["error"];
}
catch(e) {}
catch(e) {console.log(e)}
new bootstrap.Toast(document.getElementById('toast-post-error')).show();
btn.classList.remove('disabled');
}
@ -216,7 +216,7 @@ document.onpaste = function(event) {
document.getElementById('filename-show-reply-' + fullname).textContent = filename;
}
}
catch(e) {}
catch(e) {console.log(e)}
}
else if (focused.id.includes('comment-edit-body-')) {
var id = focused.dataset.id;

View file

@ -30,7 +30,7 @@ function post_toast(url, reload, data) {
xhr.onload = function() {
let data
try {data = JSON.parse(xhr.response)}
catch(e) {}
catch(e) {console.log(e)}
if (xhr.status >= 200 && xhr.status < 300 && data && data['message']) {
document.getElementById('toast-post-success-text').innerText = data["message"];
new bootstrap.Toast(document.getElementById('toast-post-success')).show();

View file

@ -19,7 +19,7 @@ function post_toast2(url, button1, button2) {
xhr.onload = function() {
let data
try {data = JSON.parse(xhr.response)}
catch(e) {}
catch(e) {console.log(e)}
if (xhr.status >= 200 && xhr.status < 300 && data && data["message"]) {
document.getElementById('toast-post-success-text').innerText = data["message"];
new bootstrap.Toast(document.getElementById('toast-post-success')).show();

View file

@ -46,7 +46,7 @@ function post_toast_callback(url, data, callback) {
document.getElementById('toast-post-error-text').innerText = JSON.parse(xhr.response)["error"];
}
return false
} catch(e) {}
} catch(e) {console.log(e)}
return false;
}

View file

@ -1,4 +1,4 @@
<script src="/static/assets/js/award_modal.js?a=4"></script>
<script src="/static/assets/js/award_modal.js?a=5"></script>
<div class="modal fade" id="awardModal" tabindex="-1" role="dialog" aria-labelledby="awardModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered awardmodal" role="document">
<div class="modal-content">

View file

@ -104,6 +104,6 @@
</nav>
{% endif %}
<script src="/static/assets/js/post_toast2.js?a=9"></script>
<script src="/static/assets/js/post_toast2.js?a=10"></script>
{% endblock %}

View file

@ -848,7 +848,7 @@
{% if v %}
<script src="/static/assets/js/marked.js?a=3"></script>
<script src="/static/assets/js/comments_v.js?a=14"></script>
<script src="/static/assets/js/comments_v.js?a=15"></script>
{% endif %}
<script src="/static/assets/js/clipboard.js?a=3"></script>

View file

@ -317,7 +317,7 @@
<script src="/static/assets/js/lozad.js?a=3"></script>
{% if v %}
<script src="/static/assets/js/post_toast2.js?a=9"></script>
<script src="/static/assets/js/post_toast2.js?a=10"></script>
<script src="/static/assets/js/formatting.js?a=3"></script>
<script src="/static/assets/js/default.js?a=4"></script>
{% endif %}

View file

@ -80,7 +80,7 @@
</div>
</div>
<script src="/static/assets/js/emoji_modal.js?a=44"></script>
<script src="/static/assets/js/emoji_modal.js?a=45"></script>
<style>
a.emojitab {

View file

@ -207,7 +207,7 @@
</div>
</nav>
<script src="/static/assets/js/header.js?a=9"></script>
<script src="/static/assets/js/header.js?a=10"></script>
<style>
.notif-count {

View file

@ -691,7 +691,7 @@
{% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron or v.alts_patron or u.alts_patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=9"></script>
<script src="/static/assets/js/userpage_v.js?a=10"></script>
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}

View file

@ -110,7 +110,7 @@
{% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=9"></script>
<script src="/static/assets/js/userpage_v.js?a=10"></script>
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}

View file

@ -44,7 +44,7 @@
{% if v %}
<div id='tax' class="d-none">{% if v.patron or u.patron %}0{% else %}0.03{% endif %}</div>
<script src="/static/assets/js/userpage_v.js?a=9"></script>
<script src="/static/assets/js/userpage_v.js?a=10"></script>
<div id="username" class="d-none">{{u.username}}</div>
{% endif %}