From d179cd896fc9bae0581f7e4f6610c9efe266ca10 Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Thu, 19 Aug 2021 21:03:15 -0700 Subject: [PATCH] Allow revoting without refreshing --- package.json | 2 +- www/js/callbacks.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 907bea68..33b631aa 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.82.2", + "version": "3.82.3", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/www/js/callbacks.js b/www/js/callbacks.js index bb809bc8..24f90ac3 100644 --- a/www/js/callbacks.js +++ b/www/js/callbacks.js @@ -944,8 +944,10 @@ Callbacks = { option: i }); poll.find(".option button").each(function() { - $(this).attr("disabled", "disabled"); + $(this).removeClass("active"); + $(this).parent().removeClass("option-selected"); }); + $(this).addClass("active"); $(this).parent().addClass("option-selected"); } $("