diff --git a/web/root/js/forum.js b/web/root/js/forum.js index 82964b37b9f3a5be6ab2e6094c30536719ad3cfc..31553bd29a52c5e0019270d62496650cadbc0f9a 100644 --- a/web/root/js/forum.js +++ b/web/root/js/forum.js @@ -341,13 +341,14 @@ function getVotesInThread(sub, id) { $('#dv-count-' + m).text(data.m[m].d); $('#dv-' + m).addClass('indicator'); } - console.log(data.m[m]); switch (data.m[m].v) { case 1: $('#uv-' + m).addClass('upvote-fg'); + $('#uv-' + m).attr('disabled', true); break; case 2: $('#dv-' + m).addClass('downvote-fg'); + $('#dv-' + m).attr('disabled', true); break; default: break;