From b99cc4a8aa887f9f3d36b882f3f319b48e38a9c1 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 10 Sep 2022 10:42:17 +0200 Subject: [PATCH] remove surgical tools I forgot in the patient's body --- files/assets/js/bootstrap.js | 1 - files/assets/js/comments+submission_listing.js | 1 - files/assets/js/sort_table.js | 2 +- files/templates/comments.html | 2 +- files/templates/submission_listing.html | 2 +- files/templates/util/assetcache.html | 4 ++-- 6 files changed, 5 insertions(+), 7 deletions(-) diff --git a/files/assets/js/bootstrap.js b/files/assets/js/bootstrap.js index 14d55a2b4..f1c327b4c 100644 --- a/files/assets/js/bootstrap.js +++ b/files/assets/js/bootstrap.js @@ -123,7 +123,6 @@ function formkey() { } function expandDesktopImage(url) { - console.log('this') const e = this.event if(e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) return true; diff --git a/files/assets/js/comments+submission_listing.js b/files/assets/js/comments+submission_listing.js index a6d3d663d..cce8f84e5 100644 --- a/files/assets/js/comments+submission_listing.js +++ b/files/assets/js/comments+submission_listing.js @@ -96,7 +96,6 @@ function poll_vote_1(oid, parentid, kind) { let curr = document.getElementById(`current-${kind}-${parentid}`) if (curr && curr.value) { - console.log(curr.value) const scoretext = document.getElementById('score-' + curr.value); const score = Number(scoretext.textContent); scoretext.textContent = score - 1; diff --git a/files/assets/js/sort_table.js b/files/assets/js/sort_table.js index 9281ab7d5..da3061c5f 100644 --- a/files/assets/js/sort_table.js +++ b/files/assets/js/sort_table.js @@ -8,8 +8,8 @@ function sort_table(n) { const ele = rows[i]; let x = rows[i].getElementsByTagName("TD")[n]; x = x.getElementsByTagName('a')[0] || x; + x = const attr = x.dataset.time ? parseInt(x.dataset.time) : parseInt(x.innerHTML); - console.log(attr); items.push({ ele, attr }); } if (sortAscending[n]) { diff --git a/files/templates/comments.html b/files/templates/comments.html index 172bb0651..95203f24f 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -825,7 +825,7 @@ {% include "expanded_image_modal.html" %} - + - + diff --git a/files/templates/util/assetcache.html b/files/templates/util/assetcache.html index 7d09281df..8cd4c3fd9 100644 --- a/files/templates/util/assetcache.html +++ b/files/templates/util/assetcache.html @@ -16,7 +16,7 @@ set CACHE_VER = { 'css/win98.css': 4007, 'js/award_modal.js': 4001, - 'js/bootstrap.js': 4003, + 'js/bootstrap.js': 4004, 'js/category_modal.js': 4000, 'js/comments_admin.js': 4000, 'js/comments_v.js': 4001, @@ -30,7 +30,7 @@ set CACHE_VER = { 'js/userpage.js': 4000, 'js/userpage_v.js': 4001, 'js/lozad.js': 4000, - 'js/sort_table.js': 4000, + 'js/sort_table.js': 4001, } -%}