diff --git a/files/assets/js/award_modal.js b/files/assets/js/award_modal.js index f10130f1e..bc112e5ac 100644 --- a/files/assets/js/award_modal.js +++ b/files/assets/js/award_modal.js @@ -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:"; diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index b0cae035a..60caaa6eb 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -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; diff --git a/files/assets/js/header.js b/files/assets/js/header.js index 53c509a7d..1bc3affa9 100644 --- a/files/assets/js/header.js +++ b/files/assets/js/header.js @@ -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(); diff --git a/files/assets/js/post_toast2.js b/files/assets/js/post_toast2.js index 930d368e5..721774c40 100644 --- a/files/assets/js/post_toast2.js +++ b/files/assets/js/post_toast2.js @@ -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(); diff --git a/files/assets/js/userpage_v.js b/files/assets/js/userpage_v.js index 32d347b8c..455b2dba8 100644 --- a/files/assets/js/userpage_v.js +++ b/files/assets/js/userpage_v.js @@ -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; } diff --git a/files/templates/award_modal.html b/files/templates/award_modal.html index b6091c700..311d8cd8e 100644 --- a/files/templates/award_modal.html +++ b/files/templates/award_modal.html @@ -1,4 +1,4 @@ - +